Just for fun, strtotime converts a string to an number representing the number of seconds since January 1 1970 00:00:00 GMT (called the Unix epoch) so it takes into account the days and years as well as the hours and minutes.
Here's a warning from the php.net manual:
The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are the dates that correspond to the minimum and maximum values for a 32-bit signed integer.) Additionally, not all platforms support negative timestamps, therefore your date range may be limited to no earlier than the Unix epoch. This means that e.g. dates prior to Jan 1, 1970 will not work on Windows, some Linux distributions, and a few other operating systems. PHP 5.1.0 and newer versions overcome this limitation though.
I'm trying to make an if() statement where something will happen if $launchtime is past $servertime.
<?php$servertime = date('m/d/Y h:i:s A');
$launchtime = "01/01/2008 12:00:00 AM";
?>
I tried this
<?phpif($servertime >= $launchtime) {}
?>
But it only works if the $servertime is larger than the $launchtime. I need it so that it could be any day and time, not one number larger than the other. Understand? It's hard to explain, sorry.
Any help would be appreciated. Thanks!