gmmktime
(PHP 4, PHP 5)
gmmktime — Get Unix timestamp for a GMT date
Description
int gmmktime
([ int $hour
[, int $minute
[, int $second
[, int $month
[, int $day
[, int $year
[, int $is_dst
]]]]]]] )
Like mktime(), arguments may be left out in order
from right to left, with any omitted arguments being set to the
current corresponding GMT value.
Parameters
-
hour
-
The hour
-
minute
-
The minute
-
second
-
The second
-
month
-
The month
-
day
-
The day
-
year
-
The year
-
is_dst
-
Parameters always represent a GMT date so is_dst
doesn't influence the result.
Return Values
Returns a integer Unix timestamp.
Examples
Example #1 gmmktime() on Windows boundary
<?php
gmmktime(0, 0, 0, 1, 1, 1970); ?>