O'Reilly logo

Programming PHP, 3rd Edition by Peter MacIntyre, Kevin Tatroe, Rasmus Lerdorf

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

date_parse_from_format

Synopsis

array date_parse_from_format(string format, string time)

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

Year

month

Month

day

Day of the month

hour

Hours

minute

Minutes

second

Seconds

fraction

Fractions of seconds

warning_count

Number of warnings that occurred during parsing

warnings

An array of warnings that occurred during parsing

error_count

Number of errors that occurred during parsing

errors

An array of errors that occurred during parsing

is_localtime

True if the time represents a time in the current default time zone

zone_type

The type of time zone zone represents

zone

The time zone the time is in

is_dst

True if the time represents a time in Daylight Savings Time

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required