Definition
The gmmktime() function gets Unix timestamp for a GMT date.
Syntax
gmmktime(hour, minute, second, month, day, year)
Parameters
Parameter | Description |
---|---|
hour |
Optional. Specifies the hour. |
minute |
Optional. Specifies the minute. |
second |
Optional. Specifies the second. |
month |
Optional. Specifies the month. |
day |
Optional. Specifies the day. |
year |
Optional. Specifies the year. |
Example
<?php
echo "Christmas in 2000 was on a ".date("l", gmmktime(0, 0, 0, 12, 25, 2000));