Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

rest_get_date_with_gmt()

3 tags 1 category

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

Inputs: $date (string): RFC3339 timestamp. $is_utc (bool): Whether the provided date should be interpreted as UTC. Default false.

Returns array|null: Local and UTC datetime strings, in MySQL datetime format (Y-m-d H:i:s), null on failure. Field $0 (string): Local datetime string. Field $1 (string): UTC datetime string.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…