rest_get_date_with_gmt


rest_get_date_with_gmt ( $date, $is_utc = false )

Parameters:
  • (string) date RFC3339 timestamp.
  • (bool) is_utc Whether the provided date should be interpreted as UTC. Default false.
See:
Returns:
  • (array|null) { Local and UTC datetime strings, in MySQL datetime format (Y-m-d H:i:s), null on failure. @type string $0 Local datetime string. @type string $1 UTC datetime string. }
Defined at:

Description

Parses a date into both its local and UTC equivalent, in MySQL datetime format.

Related Functions

get_date_from_gmt, get_date_template, rest_get_route_for_post, rest_get_route_for_term, rest_get_avatar_sizes

Top Google Results

User discussions

wpseek mobile