rest_parse_date


rest_parse_date ( $date, $force_utc = false )

Parameters:
  • (string) date RFC3339 timestamp.
  • (bool) force_utc Optional. Whether to force UTC timezone instead of using the timestamp's timezone. Default false.
Returns:
  • (int|false) Unix timestamp on success, false on failure.
Defined at:

Description

Parses an RFC3339 time into a Unix timestamp.Explicitly check for `false` to detect failure, as zero is a valid return value on success.

Related Functions

rest_parse_hex_color, get_the_date, get_core_updates, list_core_update, rest_parse_embed_param

Top Google Results

User discussions

wpseek mobile