-
Notifications
You must be signed in to change notification settings - Fork 159
Date and Time
Dmitriy Zayceff edited this page Apr 30, 2015
·
7 revisions
There is a few classes to work with date, time and timezones:
-
php\time\Time
to work with datetime. -
php\time\TimeZone
to worki with timezones. -
php\time\TimeFormat
to parse and format time.
-
DateTime
->Time
-
time
->Time::seconds()
unix time in seconds (UTC) -
???
->Time::millis()
unix time in milliseconds -
microtime(1)
->Time::millis() / 1000
-
strtotime
->TimeFormat::parse
-
date
->TimeFormat::format
JPHP Group 2015