Name
date_parse_from_format
Synopsis
array date_parse_from_format(stringformat, stringtime)
Parses time into an associative array
representing a date. The string time is
given in the format specified by format,
using the same character codes as described in date(). The returned array contains the
following entries:
| Year |
| Month |
| Day of the month |
| Hours |
| Minutes |
| Seconds |
| Fractions of seconds |
| Number of warnings that occurred during parsing |
| An array of warnings that occurred during parsing |
| Number of errors that occurred during parsing |
| An array of errors that occurred during parsing |
| True if the time represents a time in the current default time zone |
| The type of time zone
|
| The time zone the time is in |
| True if the time represents a time in Daylight Savings Time |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access