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

Glossary Term

mysql_to_rfc3339()

3 tags 1 category

mysql_to_rfc3339() — Parses and formats a MySQL datetime (Y-m-d H:i:s) for ISO8601 (Y-m-dTH:i:s). Explicitly strips timezones, as datetimes are not saved with any timezone information. Including any information on the offset could be misleading. Despite historical function name, the output does not conform to RFC3339 format, which must contain timezone.

Inputs: $date_string (string): Date string to parse and format.

Returns string: Date formatted for ISO8601 without time zone.

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…