Easy Tutorial
❮ Filter Sanitize Url Pdo Construct ❯

PHP gmmktime() Function

PHP Date/Time Reference Manual

Example

Returns the UNIX timestamp for a GMT date and then uses it to find the day of that date:


Definition and Usage

The gmmktime() function returns the UNIX timestamp for a GMT date.

Note: This function is identical to mktime(), except the passed parameters represent a GMT date.

Syntax

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.
is_dst Optional. Parameters always represent a GMT date, so is_dst does not affect the result. Note: This parameter was deprecated in PHP 5.1.0. New timezone handling features were introduced instead.

Technical Details

Return Value: Returns an integer Unix timestamp.
PHP Version: 4+
--- ---
Changelog: PHP 5.1.0: The is_dst parameter was deprecated.
--- ---

❮ Filter Sanitize Url Pdo Construct ❯