Time Zones

I know this is not specific to PHP, but what is the point of using the time intervals listed as follows: http://us2.php.net/manual/en/timezones.america.php ? For example, America / Indianapolis and America / New York. What is the problem with EST, EDT, CST, CDT, & c?

+3
source share
6 answers

This is just another time zone format provided by the Zoneinfo database :

The time zone in the database, given uniform names such as "America / New York," in an attempt to facilitate their understanding of people and eliminate ambiguity.

+4

'America/New_York' . EST , EDT. 3- - . EST , .

+11

( ), , , .

+1

. , .

+1

http://us2.php.net/date_default_timezone_set

: . PHP 5.1.0 ( / ), / E_NOTICE, , / E_STRICT TZ.

0

"/" "/-" TZID ( ) tz ( zoneinfo IANA Olson).

tz , 1970 .

, TZID , 1 1970 (Unix Epoch).

Unix. , 32- , 2038 .

"EST", "EDT", "CST" "CDT" Microsoft Windows , ( " ", " ", " " " " ).

Additional advantages / disadvantages are given at fooobar.com/tags/timezone / ... .

0
source

Source: https://habr.com/ru/post/1705781/


All Articles