| DaWei |
Jul 18th, 2007 7:20 AM |
A timestamp is the number of seconds elapsed since midnight, January 1, 1970, GMT. At any moment, at any place in the world (or out of the world, for that matter), that number is the same.
Have you referred to the PHP manual? For instance,
Quote:
int strtotime ( string $time [, int $now] )
The function expects to be given a string containing a US English date format and will try to parse that format into a Unix timestamp (the number of seconds since January 1 1970 00:00:00 GMT), relative to the timestamp given in now, or the current time if none is supplied.
This function will use the TZ environment variable (if available) to calculate the timestamp. Since PHP 5.1.0 there are easier ways to define the timezone that is used across all date/time functions. That process is explained in the date_default_timezone_get() function page.
|
|