Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

gmmktime()

3 tags 1 category

gmmktime() — Get Unix timestamp for a GMT date.

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, optional arguments may be left out in order from right to left, with any omitted arguments being set to the current corresponding GMT value.

Inputs: hour: The number of the hour relative to the start of the day determined by month, day and year. Negative values reference the hour before midnight of the day in question. Values greater than 23 reference the appropriate hour in the following day(s). minute: The number of the minute relative to the start of the hour. Negative values reference the minute in the previous hour. Values greater than 59 reference the appropriate minute in the following hour(s). second: The number of seconds relative to the start of the minute. Negative values reference the second in the previous minute. Values greater than 59 reference the appropriate second in the following minute(s). month: The number of the month relative to the end of the previous year. Values 1 to 12 reference the normal calendar months of the year in question. Values less than 1 (including negative values) reference the months in the previous year in reverse order, so 0 is December, -1 is November, etc.

Returns: Returns a int Unix timestamp on success, or false if the timestamp doesn’t fit in a PHP integer.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…