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.
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_avatar_sizes, rest_parse_date, register_sidebar_widget

Top Google Results

User discussions

wpseek mobile