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 |
Get Programming PHP, 3rd Edition now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.