note 114694 added to timezones.america
| From: | php at firstnetimpressions dot com | Date: | Mon, 24 Mar 2014 01:35:31 +0000 |
| Subject: | note 114694 added to timezones.america | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199035@lists.php.net to get a copy of this message | ||
I give the folks in the USA the benefit of the doubt in that they know their own time zone and
whether or not to use daylight savings time. The whole city list can be boiled down to just
fourteen entries (including Hawaii and Puerto Rico).
<?php
// Timezone suggestions from PHP CookBook By Adam Trachtenberg
// and David Sklar Table 3-5 zoneinfo zones
$zones = array();
$zones['Pacific/Honolulu'] = 'Hawaii-Aleutian Standard Time (HAST)';
$zones['US/Aleutian'] = 'Hawaii-Aleutian with Daylight Savings Time
(HADT)';
$zones['Etc/GMT+9'] = 'Alaska Standard Time (AKST)';
$zones['America/Anchorage'] = 'Alaska with Daylight Savings Time (AKDT)';
$zones['America/Dawson_Creek'] = 'Pacific Standard Time (PST)';
$zones['PST8PDT'] = 'Pacific with Daylight Savings Time (PDT)';
$zones['MST'] = 'Mountain Standard Time (MST)';
$zones['MST7MDT'] = 'Mountain with Daylight Savings Time (MDT)';
$zones['Canada/Saskatchewan'] = 'Central Standard Time (CST)';
$zones['CST6CDT'] = 'Central with Daylight Savings Time (CDT)';
$zones['EST'] = 'Eastern Standard Time (EST)';
$zones['EST5EDT'] = 'Eastern with Daylight Savings Time (EDT)';
$zones['America/Puerto_Rico'] = 'Atlantic Standard Time (AST)';
$zones['America/Halifax'] = 'Atlantic with Daylight Savings Time (ADT)';
?>
----
Server IP: 192.41.45.150
Probable Submitter: 96.40.254.18
----
Manual Page -- http://php.net/manual/en/timezones.america.php
Edit -- https://master.php.net/note/edit/114694
Del: integrated -- https://master.php.net/note/delete/114694/integrated
Del: useless -- https://master.php.net/note/delete/114694/useless
Del: bad code -- https://master.php.net/note/delete/114694/bad+code
Del: spam -- https://master.php.net/note/delete/114694/spam
Del: non-english -- https://master.php.net/note/delete/114694/non-english
Del: in docs -- https://master.php.net/note/delete/114694/in+docs
Del: other reasons-- https://master.php.net/note/delete/114694
Reject -- https://master.php.net/note/reject/114694
Search -- https://master.php.net/manage/user-notes.php