Returns the UNIX timestamp of a GMT date, which can then be used to find the day of the date:
<?php// Prints: October 3, 1975 was on a Fridayecho "Oct 3, 1975 was on a ".date("l", gmmktime(0,0,0,10,3,1975));?>The gmmktime() function returns the UNIX timestamp of a GMT date.
Tip: This function is the same as mktime(), except that the passed parameter represents a GMT date.
gmmktime( hour, minute, second, month, day, year, is_dst );
| parameter | describe |
|---|---|
| hour | Optional. Specified hours. |
| minute | Optional. prescribed points. |
| second | Optional. Specifies seconds. |
| month | Optional. Specified month. |
| day | Optional. Specify days. |
| year | Optional. Specified year. |
| is_dst | Optional. The argument always represents a GMT date, so is_dst does not affect the result. Note: This parameter is deprecated in PHP 5.1.0. Instead, new time zone handling features are used. |
| Return value: | Returns an integer Unix timestamp. |
|---|---|
| PHP version: | 4+ |
| Update log: | PHP 5.1.0: The is_dst parameter is deprecated. |