PHP gmmktime function
Like this blog? Consider exploring one of our sponsored banner ads...
gmmktime
(PHP 3, PHP 4, PHP 5)
gmmktime — Get Unix timestamp for a GMT dateDescriptionint gmmktime ( [int hour [, int minute [, int second [, int month [, int day [, int year [, int is_dst]]]]]]] )
Identical to mktime() except the passed parameters represents a
GMT date. gmmktime() internally uses mktime()
so only times valid in derived local time can be used.
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.
hour
The hour
The minute
The second
The month
The day
The year
Parameters always represent a GMT date so is_dst
doesn’t influence the result.
Return Values
Returns a integer Unix timestamp.
VersionDescription5.1.0 As of PHP 5.1.0, the is_dst parameter became
deprecated. As a result, the new timezone handling features should be used
instead.
Examples
Example 1. gmmktime() on Windows boundary
gmmktime(0, 0, 0, 1, 1, 1970); // valid in GMT and west, invalid in east
See Also
mktime()date()time()
About this entry
You’re currently reading “PHP gmmktime function,” an entry on BRADINO
- Published:
- 2.26.07 / 1am
- Category:
- PHP Functions
- Tags:
No comments
Jump to comment form | comments rss [?] | trackback uri [?]