September 2001
Intermediate to advanced
768 pages
32h 45m
English
int gmmktime(int hour, int minute, int second, int month, int day, int year)
| hour | Hours |
| minute | Minutes |
| second | Seconds |
| month | Numerical month |
| day | Numerical day |
| year | Year |
Creates a UNIX timestamp from a GMT date.
Returns:
UNIX timestamp if successful; -1 if 0 is given for each of month , day , and year
Description:
This function is like mktime() except that the returned UNIX time is formatted to GMT.
Version:
PHP 3, PHP 4
See also:
mktime() gmdate()
Example:
$my_time = gmmktime(0, 0, 0, 4, 1, 1998);
print(date("M-d-Y", $my_time));
|
Read now
Unlock full access