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: - Introduced in WordPress: 4.4.0
- Deprecated in WordPress: —
Description
Parses a date into both its local and UTC equivalent, in MySQL datetime format.