Browse files

Updating time-zone data

git-svn-id: http://svn.php.net/repository/pear/packages/Date/trunk@255130 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent e010171 commit cc8b8491ee9e7ff1347d8244d0cbcc5250259a12 Charles Woodcock committed Mar 15, 2008
Showing with 234 additions and 148 deletions.
  1. +232 −147 Date/TimeZone.php
  2. +2 −1 docs/examples/example.php
View
379 Date/TimeZone.php
@@ -1283,7 +1283,7 @@ function getSummerTimeEndTime()
*/
$GLOBALS['_DATE_TIMEZONE_DATA'] = array(
//
- // Time zone data is correct as of 11.xi.2007
+ // Time zone data is correct as of 15.iii.2007
//
'Africa/Abidjan' => array(
'offset' => 0,
@@ -1625,47 +1625,124 @@ function getSummerTimeEndTime()
'America/Argentina/Buenos_Aires' => array(
'offset' => -10800000,
'shortname' => 'ART',
- 'dstshortname' => null ),
+ 'dstshortname' => 'ARST',
+ 'summertimeoffset' => 3600000,
+ 'summertimestartmonth' => 10,
+ 'summertimestartday' => 'Sun>=1',
+ 'summertimestarttime' => 0,
+ 'summertimeendmonth' => 3,
+ 'summertimeendday' => 'Sun>=15',
+ 'summertimeendtime' => 0 ),
'America/Argentina/Catamarca' => array(
'offset' => -10800000,
'shortname' => 'ART',
- 'dstshortname' => null ),
+ 'dstshortname' => 'ARST',
+ 'summertimeoffset' => 3600000,
+ 'summertimestartmonth' => 10,
+ 'summertimestartday' => 'Sun>=1',
+ 'summertimestarttime' => 0,
+ 'summertimeendmonth' => 3,
+ 'summertimeendday' => 'Sun>=15',
+ 'summertimeendtime' => 0 ),
'America/Argentina/ComodRivadavia' => array(
'offset' => -10800000,
'shortname' => 'ART',
- 'dstshortname' => null ),
+ 'dstshortname' => 'ARST',
+ 'summertimeoffset' => 3600000,
+ 'summertimestartmonth' => 10,
+ 'summertimestartday' => 'Sun>=1',
+ 'summertimestarttime' => 0,
+ 'summertimeendmonth' => 3,
+ 'summertimeendday' => 'Sun>=15',
+ 'summertimeendtime' => 0 ),
'America/Argentina/Cordoba' => array(
'offset' => -10800000,
'shortname' => 'ART',
- 'dstshortname' => null ),
+ 'dstshortname' => 'ARST',
+ 'summertimeoffset' => 3600000,
+ 'summertimestartmonth' => 10,
+ 'summertimestartday' => 'Sun>=1',
+ 'summertimestarttime' => 0,
+ 'summertimeendmonth' => 3,
+ 'summertimeendday' => 'Sun>=15',
+ 'summertimeendtime' => 0 ),
'America/Argentina/Jujuy' => array(
'offset' => -10800000,
'shortname' => 'ART',
- 'dstshortname' => null ),
+ 'dstshortname' => 'ARST',
+ 'summertimeoffset' => 3600000,
+ 'summertimestartmonth' => 10,
+ 'summertimestartday' => 'Sun>=1',
+ 'summertimestarttime' => 0,
+ 'summertimeendmonth' => 3,
+ 'summertimeendday' => 'Sun>=15',
+ 'summertimeendtime' => 0 ),
'America/Argentina/La_Rioja' => array(
'offset' => -10800000,
'shortname' => 'ART',
- 'dstshortname' => null ),
+ 'dstshortname' => 'ARST',
+ 'summertimeoffset' => 3600000,
+ 'summertimestartmonth' => 10,
+ 'summertimestartday' => 'Sun>=1',
+ 'summertimestarttime' => 0,
+ 'summertimeendmonth' => 3,
+ 'summertimeendday' => 'Sun>=15',
+ 'summertimeendtime' => 0 ),
'America/Argentina/Mendoza' => array(
'offset' => -10800000,
'shortname' => 'ART',
- 'dstshortname' => null ),
+ 'dstshortname' => 'ARST',
+ 'summertimeoffset' => 3600000,
+ 'summertimestartmonth' => 10,
+ 'summertimestartday' => 'Sun>=1',
+ 'summertimestarttime' => 0,
+ 'summertimeendmonth' => 3,
+ 'summertimeendday' => 'Sun>=15',
+ 'summertimeendtime' => 0 ),
'America/Argentina/Rio_Gallegos' => array(
'offset' => -10800000,
'shortname' => 'ART',
- 'dstshortname' => null ),
+ 'dstshortname' => 'ARST',
+ 'summertimeoffset' => 3600000,
+ 'summertimestartmonth' => 10,
+ 'summertimestartday' => 'Sun>=1',
+ 'summertimestarttime' => 0,
+ 'summertimeendmonth' => 3,
+ 'summertimeendday' => 'Sun>=15',
+ 'summertimeendtime' => 0 ),
'America/Argentina/San_Juan' => array(
'offset' => -10800000,
'shortname' => 'ART',
- 'dstshortname' => null ),
+ 'dstshortname' => 'ARST',
+ 'summertimeoffset' => 3600000,
+ 'summertimestartmonth' => 10,
+ 'summertimestartday' => 'Sun>=1',
+ 'summertimestarttime' => 0,
+ 'summertimeendmonth' => 3,
+ 'summertimeendday' => 'Sun>=15',
+ 'summertimeendtime' => 0 ),
'America/Argentina/Tucuman' => array(
'offset' => -10800000,
'shortname' => 'ART',
- 'dstshortname' => null ),
+ 'dstshortname' => 'ARST',
+ 'summertimeoffset' => 3600000,
+ 'summertimestartmonth' => 10,
+ 'summertimestartday' => 'Sun>=1',
+ 'summertimestarttime' => 0,
+ 'summertimeendmonth' => 3,
+ 'summertimeendday' => 'Sun>=15',
+ 'summertimeendtime' => 0 ),
'America/Argentina/Ushuaia' => array(
'offset' => -10800000,
'shortname' => 'ART',
- 'dstshortname' => null ),
+ 'dstshortname' => 'ARST',
+ 'summertimeoffset' => 3600000,
+ 'summertimestartmonth' => 10,
+ 'summertimestartday' => 'Sun>=1',
+ 'summertimestarttime' => 0,
+ 'summertimeendmonth' => 3,
+ 'summertimeendday' => 'Sun>=15',
+ 'summertimeendtime' => 0 ),
'America/Aruba' => array(
'offset' => -14400000,
'shortname' => 'AST',
@@ -1750,8 +1827,15 @@ function getSummerTimeEndTime()
'America/Buenos_Aires' => array(
'offset' => -10800000,
'shortname' => 'ART',
- 'dstshortname' => null,
- 'longname' => 'Argentine Time' ),
+ 'dstshortname' => 'ARST',
+ 'longname' => 'Argentine Time',
+ 'summertimeoffset' => 3600000,
+ 'summertimestartmonth' => 10,
+ 'summertimestartday' => 'Sun>=1',
+ 'summertimestarttime' => 0,
+ 'summertimeendmonth' => 3,
+ 'summertimeendday' => 'Sun>=15',
+ 'summertimeendtime' => 0 ),
'America/Cambridge_Bay' => array(
'offset' => -25200000,
'shortname' => 'MST',
@@ -1797,8 +1881,15 @@ function getSummerTimeEndTime()
'America/Catamarca' => array(
'offset' => -10800000,
'shortname' => 'ART',
- 'dstshortname' => null,
- 'longname' => 'Argentine Time' ),
+ 'dstshortname' => 'ARST',
+ 'longname' => 'Argentine Time',
+ 'summertimeoffset' => 3600000,
+ 'summertimestartmonth' => 10,
+ 'summertimestartday' => 'Sun>=1',
+ 'summertimestarttime' => 0,
+ 'summertimeendmonth' => 3,
+ 'summertimeendday' => 'Sun>=15',
+ 'summertimeendtime' => 0 ),
'America/Cayenne' => array(
'offset' => -10800000,
'shortname' => 'GFT',
@@ -1842,8 +1933,15 @@ function getSummerTimeEndTime()
'America/Cordoba' => array(
'offset' => -10800000,
'shortname' => 'ART',
- 'dstshortname' => null,
- 'longname' => 'Argentine Time' ),
+ 'dstshortname' => 'ARST',
+ 'longname' => 'Argentine Time',
+ 'summertimeoffset' => 3600000,
+ 'summertimestartmonth' => 10,
+ 'summertimestartday' => 'Sun>=1',
+ 'summertimestarttime' => 0,
+ 'summertimeendmonth' => 3,
+ 'summertimeendday' => 'Sun>=15',
+ 'summertimeendtime' => 0 ),
'America/Costa_Rica' => array(
'offset' => -21600000,
'shortname' => 'CST',
@@ -2075,8 +2173,8 @@ function getSummerTimeEndTime()
'summertimestartmonth' => 3,
'summertimestartday' => 'Sun>=8',
'summertimestarttime' => 18000000,
- 'summertimeendmonth' => 11,
- 'summertimeendday' => 'Sun>=1',
+ 'summertimeendmonth' => 10,
+ 'summertimeendday' => 'lastSun',
'summertimeendtime' => 18000000 ),
'America/Hermosillo' => array(
'offset' => -25200000,
@@ -2222,8 +2320,15 @@ function getSummerTimeEndTime()
'America/Jujuy' => array(
'offset' => -10800000,
'shortname' => 'ART',
- 'dstshortname' => null,
- 'longname' => 'Argentine Time' ),
+ 'dstshortname' => 'ARST',
+ 'longname' => 'Argentine Time',
+ 'summertimeoffset' => 3600000,
+ 'summertimestartmonth' => 10,
+ 'summertimestartday' => 'Sun>=1',
+ 'summertimestarttime' => 0,
+ 'summertimeendmonth' => 3,
+ 'summertimeendday' => 'Sun>=15',
+ 'summertimeendtime' => 0 ),
'America/Juneau' => array(
'offset' => -32400000,
'shortname' => 'AKST',
@@ -2328,6 +2433,10 @@ function getSummerTimeEndTime()
'shortname' => 'AMT',
'dstshortname' => null,
'longname' => 'Amazon Standard Time' ),
+ 'America/Marigot' => array(
+ 'offset' => -14400000,
+ 'shortname' => 'AST',
+ 'dstshortname' => null ),
'America/Martinique' => array(
'offset' => -14400000,
'shortname' => 'AST',
@@ -2349,8 +2458,15 @@ function getSummerTimeEndTime()
'America/Mendoza' => array(
'offset' => -10800000,
'shortname' => 'ART',
- 'dstshortname' => null,
- 'longname' => 'Argentine Time' ),
+ 'dstshortname' => 'ARST',
+ 'longname' => 'Argentine Time',
+ 'summertimeoffset' => 3600000,
+ 'summertimestartmonth' => 10,
+ 'summertimestartday' => 'Sun>=1',
+ 'summertimestarttime' => 0,
+ 'summertimeendmonth' => 3,
+ 'summertimeendday' => 'Sun>=15',
+ 'summertimeendtime' => 0 ),
'America/Menominee' => array(
'offset' => -21600000,
'shortname' => 'CST',
@@ -2639,8 +2755,15 @@ function getSummerTimeEndTime()
'America/Rosario' => array(
'offset' => -10800000,
'shortname' => 'ART',
- 'dstshortname' => null,
- 'longname' => 'Argentine Time' ),
+ 'dstshortname' => 'ARST',
+ 'longname' => 'Argentine Time',
+ 'summertimeoffset' => 3600000,
+ 'summertimestartmonth' => 10,
+ 'summertimestartday' => 'Sun>=1',
+ 'summertimestarttime' => 0,
+ 'summertimeendmonth' => 3,
+ 'summertimeendday' => 'Sun>=15',
+ 'summertimeendtime' => 0 ),
'America/Santiago' => array(
'offset' => -14400000,
'shortname' => 'CLT',
@@ -2652,7 +2775,7 @@ function getSummerTimeEndTime()
'summertimestartday' => 'Sun>=9',
'summertimestarttime' => 14400000,
'summertimeendmonth' => 3,
- 'summertimeendday' => 'Sun>=9',
+ 'summertimeendday' => '30',
'summertimeendtime' => 10800000 ),
'America/Santo_Domingo' => array(
'offset' => -14400000,
@@ -2698,6 +2821,10 @@ function getSummerTimeEndTime()
'summertimeendmonth' => 11,
'summertimeendday' => 'Sun>=1',
'summertimeendtime' => 28800000 ),
+ 'America/St_Barthelemy' => array(
+ 'offset' => -14400000,
+ 'shortname' => 'AST',
+ 'dstshortname' => null ),
'America/St_Johns' => array(
'offset' => -12600000,
'shortname' => 'NST',
@@ -3110,8 +3237,8 @@ function getSummerTimeEndTime()
'summertimestartmonth' => 3,
'summertimestartday' => 'lastFri',
'summertimestarttime' => -7200000,
- 'summertimeendmonth' => 10,
- 'summertimeendday' => '1',
+ 'summertimeendmonth' => 11,
+ 'summertimeendday' => 'Fri>=1',
'summertimeendtime' => -10800000 ),
'Asia/Dhaka' => array(
'offset' => 21600000,
@@ -4112,7 +4239,7 @@ function getSummerTimeEndTime()
'summertimestartday' => 'Sun>=9',
'summertimestarttime' => 14400000,
'summertimeendmonth' => 3,
- 'summertimeendday' => 'Sun>=9',
+ 'summertimeendday' => '30',
'summertimeendtime' => 10800000 ),
'Chile/EasterIsland' => array(
'offset' => -21600000,
@@ -4125,7 +4252,7 @@ function getSummerTimeEndTime()
'summertimestartday' => 'Sun>=9',
'summertimestarttime' => 14400000,
'summertimeendmonth' => 3,
- 'summertimeendday' => 'Sun>=9',
+ 'summertimeendday' => '30',
'summertimeendtime' => 10800000 ),
'Cuba' => array(
'offset' => -18000000,
@@ -4137,8 +4264,8 @@ function getSummerTimeEndTime()
'summertimestartmonth' => 3,
'summertimestartday' => 'Sun>=8',
'summertimestarttime' => 18000000,
- 'summertimeendmonth' => 11,
- 'summertimeendday' => 'Sun>=1',
+ 'summertimeendmonth' => 10,
+ 'summertimeendday' => 'lastSun',
'summertimeendtime' => 18000000 ),
'EET' => array(
'offset' => 7200000,
@@ -5705,7 +5832,7 @@ function getSummerTimeEndTime()
'summertimestartday' => 'Sun>=9',
'summertimestarttime' => 14400000,
'summertimeendmonth' => 3,
- 'summertimeendday' => 'Sun>=9',
+ 'summertimeendday' => '30',
'summertimeendtime' => 10800000 ),
'Pacific/Efate' => array(
'offset' => 39600000,
@@ -5927,119 +6054,6 @@ function getSummerTimeEndTime()
'shortname' => 'SGT',
'dstshortname' => null,
'longname' => 'Singapore Time' ),
- 'SystemV/AST4' => array(
- 'offset' => -14400000,
- 'shortname' => 'AST',
- 'dstshortname' => null,
- 'longname' => 'Atlantic Standard Time' ),
- 'SystemV/AST4ADT' => array(
- 'offset' => -14400000,
- 'shortname' => 'AST',
- 'dstshortname' => 'ADT',
- 'longname' => 'Atlantic Standard Time',
- 'dstlongname' => 'Atlantic Daylight Time',
- 'summertimeoffset' => 3600000,
- 'summertimestartmonth' => 4,
- 'summertimestartday' => 'lastSun',
- 'summertimestarttime' => 21600000,
- 'summertimeendmonth' => 10,
- 'summertimeendday' => 'lastSun',
- 'summertimeendtime' => 18000000 ),
- 'SystemV/CST6' => array(
- 'offset' => -21600000,
- 'shortname' => 'CST',
- 'dstshortname' => null,
- 'longname' => 'Central Standard Time' ),
- 'SystemV/CST6CDT' => array(
- 'offset' => -21600000,
- 'shortname' => 'CST',
- 'dstshortname' => 'CDT',
- 'longname' => 'Central Standard Time',
- 'dstlongname' => 'Central Daylight Time',
- 'summertimeoffset' => 3600000,
- 'summertimestartmonth' => 4,
- 'summertimestartday' => 'lastSun',
- 'summertimestarttime' => 28800000,
- 'summertimeendmonth' => 10,
- 'summertimeendday' => 'lastSun',
- 'summertimeendtime' => 25200000 ),
- 'SystemV/EST5' => array(
- 'offset' => -18000000,
- 'shortname' => 'EST',
- 'dstshortname' => null,
- 'longname' => 'Eastern Standard Time' ),
- 'SystemV/EST5EDT' => array(
- 'offset' => -18000000,
- 'shortname' => 'EST',
- 'dstshortname' => 'EDT',
- 'longname' => 'Eastern Standard Time',
- 'dstlongname' => 'Eastern Daylight Time',
- 'summertimeoffset' => 3600000,
- 'summertimestartmonth' => 4,
- 'summertimestartday' => 'lastSun',
- 'summertimestarttime' => 25200000,
- 'summertimeendmonth' => 10,
- 'summertimeendday' => 'lastSun',
- 'summertimeendtime' => 21600000 ),
- 'SystemV/HST10' => array(
- 'offset' => -36000000,
- 'shortname' => 'HST',
- 'dstshortname' => null,
- 'longname' => 'Hawaii Standard Time' ),
- 'SystemV/MST7' => array(
- 'offset' => -25200000,
- 'shortname' => 'MST',
- 'dstshortname' => null,
- 'longname' => 'Mountain Standard Time' ),
- 'SystemV/MST7MDT' => array(
- 'offset' => -25200000,
- 'shortname' => 'MST',
- 'dstshortname' => 'MDT',
- 'longname' => 'Mountain Standard Time',
- 'dstlongname' => 'Mountain Daylight Time',
- 'summertimeoffset' => 3600000,
- 'summertimestartmonth' => 4,
- 'summertimestartday' => 'lastSun',
- 'summertimestarttime' => 32400000,
- 'summertimeendmonth' => 10,
- 'summertimeendday' => 'lastSun',
- 'summertimeendtime' => 28800000 ),
- 'SystemV/PST8' => array(
- 'offset' => -28800000,
- 'shortname' => 'PST',
- 'dstshortname' => null,
- 'longname' => 'Pitcairn Standard Time' ),
- 'SystemV/PST8PDT' => array(
- 'offset' => -28800000,
- 'shortname' => 'PST',
- 'dstshortname' => 'PDT',
- 'longname' => 'Pacific Standard Time',
- 'dstlongname' => 'Pacific Daylight Time',
- 'summertimeoffset' => 3600000,
- 'summertimestartmonth' => 4,
- 'summertimestartday' => 'lastSun',
- 'summertimestarttime' => 36000000,
- 'summertimeendmonth' => 10,
- 'summertimeendday' => 'lastSun',
- 'summertimeendtime' => 32400000 ),
- 'SystemV/YST9' => array(
- 'offset' => -32400000,
- 'shortname' => 'YST',
- 'dstshortname' => null,
- 'longname' => 'Gambier Time' ),
- 'SystemV/YST9YDT' => array(
- 'offset' => -32400000,
- 'shortname' => 'YST',
- 'dstshortname' => 'YDT',
- 'longname' => 'Alaska Standard Time',
- 'dstlongname' => 'Alaska Daylight Time',
- 'summertimeoffset' => 3600000,
- 'summertimestartmonth' => 4,
- 'summertimestartday' => 'lastSun',
- 'summertimestarttime' => 39600000,
- 'summertimeendmonth' => 10,
- 'summertimeendday' => 'lastSun',
- 'summertimeendtime' => 36000000 ),
'Turkey' => array(
'offset' => 7200000,
'shortname' => 'EET',
@@ -6964,6 +6978,77 @@ function getSummerTimeEndTime()
'offset' => 10800000,
'shortname' => 'SYOT',
'longname' => 'Syowa Time' ),
+ 'SystemV/AST4' => array(
+ 'offset' => -14400000,
+ 'shortname' => 'AST',
+ 'dstshortname' => '',
+ 'longname' => 'Atlantic Standard Time' ),
+ 'SystemV/AST4ADT' => array(
+ 'offset' => -14400000,
+ 'shortname' => 'AST',
+ 'dstshortname' => 'ADT',
+ 'longname' => 'Atlantic Standard Time',
+ 'dstlongname' => 'Atlantic Daylight Time',
+ 'SystemV/CST6' => array(
+ 'offset' => -21600000,
+ 'shortname' => 'CST',
+ 'dstshortname' => '',
+ 'longname' => 'Central Standard Time' ),
+ 'SystemV/CST6CDT' => array(
+ 'offset' => -21600000,
+ 'shortname' => 'CST',
+ 'dstshortname' => 'CDT',
+ 'longname' => 'Central Standard Time',
+ 'dstlongname' => 'Central Daylight Time',
+ 'SystemV/EST5' => array(
+ 'offset' => -18000000,
+ 'shortname' => 'EST',
+ 'dstshortname' => '',
+ 'longname' => 'Eastern Standard Time' ),
+ 'SystemV/EST5EDT' => array(
+ 'offset' => -18000000,
+ 'shortname' => 'EST',
+ 'dstshortname' => 'EDT',
+ 'longname' => 'Eastern Standard Time',
+ 'dstlongname' => 'Eastern Daylight Time',
+ 'SystemV/HST10' => array(
+ 'offset' => -36000000,
+ 'shortname' => 'HST',
+ 'dstshortname' => '',
+ 'longname' => 'Hawaii Standard Time' ),
+ 'SystemV/MST7' => array(
+ 'offset' => -25200000,
+ 'shortname' => 'MST',
+ 'dstshortname' => '',
+ 'longname' => 'Mountain Standard Time' ),
+ 'SystemV/MST7MDT' => array(
+ 'offset' => -25200000,
+ 'shortname' => 'MST',
+ 'dstshortname' => 'MDT',
+ 'longname' => 'Mountain Standard Time',
+ 'dstlongname' => 'Mountain Daylight Time',
+ 'SystemV/PST8' => array(
+ 'offset' => -28800000,
+ 'shortname' => 'PST',
+ 'dstshortname' => '',
+ 'longname' => 'Pitcairn Standard Time' ),
+ 'SystemV/PST8PDT' => array(
+ 'offset' => -28800000,
+ 'shortname' => 'PST',
+ 'dstshortname' => 'PDT',
+ 'longname' => 'Pacific Standard Time',
+ 'dstlongname' => 'Pacific Daylight Time',
+ 'SystemV/YST9' => array(
+ 'offset' => -32400000,
+ 'shortname' => 'YST',
+ 'dstshortname' => '',
+ 'longname' => 'Gambier Time' ),
+ 'SystemV/YST9YDT' => array(
+ 'offset' => -32400000,
+ 'shortname' => 'YST',
+ 'dstshortname' => 'YDT',
+ 'longname' => 'Alaska Standard Time',
+ 'dstlongname' => 'Alaska Daylight Time',
'Tahiti Time' => array(
'offset' => -36000000,
'shortname' => 'TAHT',
View
3 docs/examples/example.php
@@ -1,8 +1,9 @@
<html>
<head>
+ <title>Date Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
- span.code { font-family:courier; }
+ span.code { font-family:Monospace; }
</style>
</head>
<body>

0 comments on commit cc8b849

Please sign in to comment.