timezone_offset_get


world apg

RETURNS the timezone offset related to GMT.



<?php

/* - - - - - - - - - - - - - - - - -

    Object oriented style
   
   - - - - - - - - - - - - - - - - - */
   
int public DateTimeZone::getOffset DateTimeInterface $datetime )


where,

$datetime DateTime that contains the date/time 
                   to compute the offset from
           
?>

<?php

   
/* - - - - - - - - - - - - - - - - -

      Procedural style
   
   - - - - - - - - - - - - - - - - - */

int timezone_offset_get DateTimeZone $object DateTimeInterface $datetime )


where,

$object A DateTimeZone object returned by 
               the 
function timezone_open


$datetime 
DateTime that contains the date/time 
                   to compute the offset from
                   
?>

 $object 


A DateTimeZone object returned by the function timezone_open.



 $datetime 


DateTime that contains the date/time to compute the offset from .



TIMEZONE ID, ABREVIANTIONS and OFFSET


According to the data in the table.



Timezone IDABBREVIATIONSoffset GMT DIFFERENCE
Australia/Adelaideacdt3780010h
Australia/Broken_Hillacdt3780010h
Australia/Darwinacdt3780010h
Australia/Northacdt3780010h
Australia/Southacdt3780010h
Australia/Yancowinnaacdt3780010h
Australia/Adelaideacst342009h
Australia/Broken_Hillacst342009h
Australia/Darwinacst342009h
Australia/Northacst342009h
Australia/Southacst342009h
Australia/Yancowinnaacst342009h
America/Goose_Bayaddt-7200-2h
America/Pangnirtungaddt-7200-2h
America/Halifaxadt-10800-3h
America/Barbadosadt-10800-3h
America/Blanc-Sablonadt-10800-3h
America/Glace_Bayadt-10800-3h
America/Goose_Bayadt-10800-3h
America/Martiniqueadt-10800-3h
America/Monctonadt-10800-3h
America/Pangnirtungadt-10800-3h
America/Thuleadt-10800-3h
Atlantic/Bermudaadt-10800-3h
Canada/Atlanticadt-10800-3h
Australia/Melbourneaedt3960011h
Antarctica/Macquarieaedt3960011h
Australia/ACTaedt3960011h
Australia/Brisbaneaedt3960011h
Australia/Canberraaedt3960011h
Australia/Currieaedt3960011h
Australia/Hobartaedt3960011h
Australia/Lindemanaedt3960011h
Australia/NSWaedt3960011h
Australia/Queenslandaedt3960011h
Australia/Sydneyaedt3960011h
Australia/Tasmaniaaedt3960011h
Australia/Victoriaaedt3960011h
Australia/Melbourneaest3600010h
Antarctica/Macquarieaest3600010h
Australia/ACTaest3600010h
Australia/Brisbaneaest3600010h
Australia/Canberraaest3600010h
Australia/Currieaest3600010h
Australia/Hobartaest3600010h
Australia/LHIaest3600010h
Australia/Lindemanaest3600010h
Australia/Lord_Howeaest3600010h
Australia/NSWaest3600010h
Australia/Queenslandaest3600010h
Australia/Sydneyaest3600010h
Australia/Tasmaniaaest3600010h
Australia/Victoriaaest3600010h
America/Anchorageahdt-32400-9h
America/Anchorageahst-36000-10h
America/Adakahst-36000-10h
America/Atkaahst-36000-10h
America/Anchorageakdt-28800-8h
America/Juneauakdt-28800-8h
America/Metlakatlaakdt-28800-8h
America/Nomeakdt-28800-8h
America/Sitkaakdt-28800-8h
America/Yakutatakdt-28800-8h
America/Anchorageakst-32400-9h
America/Juneauakst-32400-9h
America/Metlakatlaakst-32400-9h
America/Nomeakst-32400-9h
America/Sitkaakst-32400-9h
America/Yakutatakst-32400-9h
America/Asuncionamt-13840-3h
Europe/Amsterdamamt11720h
Europe/Athensamt56921h
America/Halifaxapt-10800-3h
America/Blanc-Sablonapt-10800-3h
America/Glace_Bayapt-10800-3h
America/Monctonapt-10800-3h
America/Pangnirtungapt-10800-3h
America/Puerto_Ricoapt-10800-3h
Canada/Atlanticapt-10800-3h
America/Anchorageapt-32400-9h
America/Anguillaast-14400-4h
America/Antiguaast-14400-4h
America/Arubaast-14400-4h
America/Barbadosast-14400-4h
America/Blanc-Sablonast-14400-4h
America/Curacaoast-14400-4h
America/Dominicaast-14400-4h
America/Glace_Bayast-14400-4h
America/Goose_Bayast-14400-4h
America/Grand_Turkast-14400-4h
America/Grenadaast-14400-4h
America/Guadeloupeast-14400-4h
America/Halifaxast-14400-4h
America/Kralendijkast-14400-4h
America/Lower_Princesast-14400-4h
America/Marigotast-14400-4h
America/Martiniqueast-14400-4h
America/Miquelonast-14400-4h
America/Monctonast-14400-4h
America/Montserratast-14400-4h
America/Pangnirtungast-14400-4h
America/Port_of_Spainast-14400-4h
America/Puerto_Ricoast-14400-4h
America/Santo_Domingoast-14400-4h
America/St_Barthelemyast-14400-4h
America/St_Kittsast-14400-4h
America/St_Luciaast-14400-4h
America/St_Thomasast-14400-4h
America/St_Vincentast-14400-4h
America/Thuleast-14400-4h
America/Tortolaast-14400-4h
America/Virginast-14400-4h
Atlantic/Bermudaast-14400-4h
Canada/Atlanticast-14400-4h
America/Anchorageast-36000-10h
Australia/Perthawdt324009h
Australia/Westawdt324009h
Australia/Perthawst288008h
Australia/Westawst288008h
America/Halifaxawt-10800-3h
America/Blanc-Sablonawt-10800-3h
America/Glace_Bayawt-10800-3h
America/Monctonawt-10800-3h
America/Pangnirtungawt-10800-3h
America/Puerto_Ricoawt-10800-3h
Canada/Atlanticawt-10800-3h
America/Anchorageawt-32400-9h
Europe/Londonbdst72002h
Europe/Belfastbdst72002h
Europe/Gibraltarbdst72002h
Europe/Guernseybdst72002h
Europe/Isle_of_Manbdst72002h
Europe/Jerseybdst72002h
GBbdst72002h
America/Adakbdt-36000-10h
America/Atkabdt-36000-10h
America/Nomebdt-36000-10h
America/Barbadosbmt-14309-3h
Europe/Tiraspolbmt62641h
America/Bogotabmt-17776-4h
Asia/Baghdadbmt106562h
Asia/Bangkokbmt241246h
Asia/Phnom_Penhbmt241246h
Asia/Vientianebmt241246h
Asia/Jakartabmt256327h
Europe/Bucharestbmt62641h
Europe/Chisinaubmt62641h
Europe/Londonbst36001h
Europe/Londonbst36001h
America/La_Pazbst-12756-3h
America/Adakbst-39600-11h
America/Atkabst-39600-11h
America/Nomebst-39600-11h
Europe/Belfastbst36001h
Europe/Guernseybst36001h
Europe/Isle_of_Manbst36001h
Europe/Jerseybst36001h
GBbst36001h
Europe/Belfastbst36001h
Europe/Dublinbst36001h
Europe/Gibraltarbst36001h
Europe/Guernseybst36001h
Europe/Isle_of_Manbst36001h
Europe/Jerseybst36001h
GBbst36001h
Australia/Adelaidecast342009h
Africa/Jubacast108003h
Africa/Khartoumcast108003h
Africa/Khartoumcat72002h
Africa/Blantyrecat72002h
Africa/Bujumburacat72002h
Africa/Gaboronecat72002h
Africa/Hararecat72002h
Africa/Jubacat72002h
Africa/Kigalicat72002h
Africa/Lubumbashicat72002h
Africa/Lusakacat72002h
Africa/Maputocat72002h
Africa/Windhoekcat72002h
America/Rankin_Inletcddt-14400-4h
America/Resolutecddt-14400-4h
America/Chicagocdt-18000-5h
Asia/Shanghaicdt324009h
America/Havanacdt-14400-4h
America/Atikokancdt-18000-5h
America/Bahia_Banderascdt-18000-5h
America/Belizecdt-18000-5h
America/Cambridge_Baycdt-18000-5h
America/Cancuncdt-18000-5h
America/Chihuahuacdt-18000-5h
America/Coral_Harbourcdt-18000-5h
America/Costa_Ricacdt-18000-5h
America/El_Salvadorcdt-18000-5h
America/Fort_Waynecdt-18000-5h
America/Guatemalacdt-18000-5h
America/Indiana/Indianapoliscdt-18000-5h
America/Indiana/Knoxcdt-18000-5h
America/Indiana/Marengocdt-18000-5h
America/Indiana/Petersburgcdt-18000-5h
America/Indiana/Tell_Citycdt-18000-5h
America/Indiana/Vevaycdt-18000-5h
America/Indiana/Vincennescdt-18000-5h
America/Indiana/Winamaccdt-18000-5h
America/Indianapoliscdt-18000-5h
America/Iqaluitcdt-18000-5h
America/Kentucky/Louisvillecdt-18000-5h
America/Kentucky/Monticellocdt-18000-5h
America/Knox_INcdt-18000-5h
America/Louisvillecdt-18000-5h
America/Managuacdt-18000-5h
America/Matamoroscdt-18000-5h
America/Menomineecdt-18000-5h
America/Meridacdt-18000-5h
America/Mexico_Citycdt-18000-5h
America/Monterreycdt-18000-5h
America/North_Dakota/Beulahcdt-18000-5h
America/North_Dakota/Centercdt-18000-5h
America/North_Dakota/New_Salemcdt-18000-5h
America/Ojinagacdt-18000-5h
America/Pangnirtungcdt-18000-5h
America/Rainy_Rivercdt-18000-5h
America/Rankin_Inletcdt-18000-5h
America/Resolutecdt-18000-5h
America/Tegucigalpacdt-18000-5h
America/Winnipegcdt-18000-5h
Canada/Centralcdt-18000-5h
Mexico/Generalcdt-18000-5h
Asia/Chongqingcdt324009h
Asia/Chungkingcdt324009h
Asia/Harbincdt324009h
Asia/Macaocdt324009h
Asia/Macaucdt324009h
Asia/Taipeicdt324009h
PRCcdt324009h
ROCcdt324009h
Europe/Berlincemt108003h
Europe/Berlincest72002h
Europe/Kaliningradcest108003h
Africa/Algierscest72002h
Africa/Ceutacest72002h
Africa/Tripolicest72002h
Africa/Tuniscest72002h
Arctic/Longyearbyencest72002h
Atlantic/Jan_Mayencest72002h
Europe/Amsterdamcest72002h
Europe/Andorracest72002h
Europe/Athenscest72002h
Europe/Belgradecest72002h
Europe/Bratislavacest72002h
Europe/Brusselscest72002h
Europe/Budapestcest72002h
Europe/Busingencest72002h
Europe/Chisinaucest72002h
Europe/Copenhagencest72002h
Europe/Gibraltarcest72002h
Europe/Kaliningradcest72002h
Europe/Kievcest72002h
Europe/Lisboncest72002h
Europe/Ljubljanacest72002h
Europe/Luxembourgcest72002h
Europe/Madridcest72002h
Europe/Maltacest72002h
Europe/Minskcest72002h
Europe/Monacocest72002h
Europe/Oslocest72002h
Europe/Pariscest72002h
Europe/Podgoricacest72002h
Europe/Praguecest72002h
Europe/Rigacest72002h
Europe/Romecest72002h
Europe/San_Marinocest72002h
Europe/Sarajevocest72002h
Europe/Simferopolcest72002h
Europe/Skopjecest72002h
Europe/Sofiacest72002h
Europe/Stockholmcest72002h
Europe/Tallinncest72002h
Europe/Tiranecest72002h
Europe/Tiraspolcest72002h
Europe/Uzhgorodcest72002h
Europe/Vaduzcest72002h
Europe/Vaticancest72002h
Europe/Viennacest72002h
Europe/Vilniuscest72002h
Europe/Warsawcest72002h
Europe/Zagrebcest72002h
Europe/Zaporozhyecest72002h
Europe/Zurichcest72002h
Europe/Berlincet36001h
Europe/Kaliningradcet72002h
Africa/Algierscet36001h
Africa/Ceutacet36001h
Africa/Tripolicet36001h
Africa/Tuniscet36001h
Arctic/Longyearbyencet36001h
Atlantic/Jan_Mayencet36001h
Europe/Amsterdamcet36001h
Europe/Andorracet36001h
Europe/Athenscet36001h
Europe/Belgradecet36001h
Europe/Bratislavacet36001h
Europe/Brusselscet36001h
Europe/Budapestcet36001h
Europe/Busingencet36001h
Europe/Chisinaucet36001h
Europe/Copenhagencet36001h
Europe/Gibraltarcet36001h
Europe/Kaliningradcet36001h
Europe/Kievcet36001h
Europe/Lisboncet36001h
Europe/Ljubljanacet36001h
Europe/Luxembourgcet36001h
Europe/Madridcet36001h
Europe/Maltacet36001h
Europe/Minskcet36001h
Europe/Monacocet36001h
Europe/Oslocet36001h
Europe/Pariscet36001h
Europe/Podgoricacet36001h
Europe/Praguecet36001h
Europe/Rigacet36001h
Europe/Romecet36001h
Europe/San_Marinocet36001h
Europe/Sarajevocet36001h
Europe/Simferopolcet36001h
Europe/Skopjecet36001h
Europe/Sofiacet36001h
Europe/Stockholmcet36001h
Europe/Tallinncet36001h
Europe/Tiranecet36001h
Europe/Tiraspolcet36001h
Europe/Uzhgorodcet36001h
Europe/Vaduzcet36001h
Europe/Vaticancet36001h
Europe/Viennacet36001h
Europe/Vilniuscet36001h
Europe/Warsawcet36001h
Europe/Zagrebcet36001h
Europe/Zaporozhyecet36001h
Europe/Zurichcet36001h
America/Argentina/Buenos_Airescmt-15408-4h
America/Argentina/Catamarcacmt-15408-4h
America/Argentina/ComodRivadaviacmt-15408-4h
America/Argentina/Cordobacmt-15408-4h
America/Argentina/Jujuycmt-15408-4h
America/Argentina/La_Riojacmt-15408-4h
America/Argentina/Mendozacmt-15408-4h
America/Argentina/Rio_Gallegoscmt-15408-4h
America/Argentina/Saltacmt-15408-4h
America/Argentina/San_Juancmt-15408-4h
America/Argentina/San_Luiscmt-15408-4h
America/Argentina/Tucumancmt-15408-4h
America/Argentina/Ushuaiacmt-15408-4h
America/Buenos_Airescmt-15408-4h
America/Catamarcacmt-15408-4h
America/Cordobacmt-15408-4h
America/Jujuycmt-15408-4h
America/Mendozacmt-15408-4h
America/Rosariocmt-15408-4h
America/Caracascmt-16060-4h
America/La_Pazcmt-16356-4h
America/Caymancmt-19176-5h
America/Panamacmt-19176-5h
Europe/Chisinaucmt69001h
Europe/Tiraspolcmt69001h
America/Chicagocpt-18000-5h
America/Atikokancpt-18000-5h
America/Coral_Harbourcpt-18000-5h
America/Fort_Waynecpt-18000-5h
America/Indiana/Indianapoliscpt-18000-5h
America/Indiana/Knoxcpt-18000-5h
America/Indiana/Marengocpt-18000-5h
America/Indiana/Petersburgcpt-18000-5h
America/Indiana/Tell_Citycpt-18000-5h
America/Indiana/Vevaycpt-18000-5h
America/Indiana/Vincennescpt-18000-5h
America/Indiana/Winamaccpt-18000-5h
America/Indianapoliscpt-18000-5h
America/Kentucky/Louisvillecpt-18000-5h
America/Kentucky/Monticellocpt-18000-5h
America/Knox_INcpt-18000-5h
America/Louisvillecpt-18000-5h
America/Menomineecpt-18000-5h
America/Rainy_Rivercpt-18000-5h
America/Winnipegcpt-18000-5h
Canada/Centralcpt-18000-5h
America/Chicagocst-21600-6h
America/Havanacst-18000-5h
America/Atikokancst-21600-6h
America/Bahia_Banderascst-21600-6h
America/Belizecst-21600-6h
America/Cambridge_Baycst-21600-6h
America/Cancuncst-21600-6h
America/Chihuahuacst-21600-6h
America/Coral_Harbourcst-21600-6h
America/Costa_Ricacst-21600-6h
America/Detroitcst-21600-6h
America/El_Salvadorcst-21600-6h
America/Fort_Waynecst-21600-6h
America/Guatemalacst-21600-6h
America/Hermosillocst-21600-6h
America/Indiana/Indianapoliscst-21600-6h
America/Indiana/Knoxcst-21600-6h
America/Indiana/Marengocst-21600-6h
America/Indiana/Petersburgcst-21600-6h
America/Indiana/Tell_Citycst-21600-6h
America/Indiana/Vevaycst-21600-6h
America/Indiana/Vincennescst-21600-6h
America/Indiana/Winamaccst-21600-6h
America/Indianapoliscst-21600-6h
America/Iqaluitcst-21600-6h
America/Kentucky/Louisvillecst-21600-6h
America/Kentucky/Monticellocst-21600-6h
America/Knox_INcst-21600-6h
America/Louisvillecst-21600-6h
America/Managuacst-21600-6h
America/Matamoroscst-21600-6h
America/Mazatlancst-21600-6h
America/Menomineecst-21600-6h
America/Meridacst-21600-6h
America/Mexico_Citycst-21600-6h
America/Monterreycst-21600-6h
America/North_Dakota/Beulahcst-21600-6h
America/North_Dakota/Centercst-21600-6h
America/North_Dakota/New_Salemcst-21600-6h
America/Ojinagacst-21600-6h
America/Pangnirtungcst-21600-6h
America/Rainy_Rivercst-21600-6h
America/Rankin_Inletcst-21600-6h
America/Reginacst-21600-6h
America/Resolutecst-21600-6h
America/Swift_Currentcst-21600-6h
America/Tegucigalpacst-21600-6h
America/Thunder_Baycst-21600-6h
America/Winnipegcst-21600-6h
Canada/Centralcst-21600-6h
Canada/Saskatchewancst-21600-6h
Mexico/BajaSurcst-21600-6h
Mexico/Generalcst-21600-6h
Asia/Chongqingcst288008h
Asia/Chungkingcst288008h
Asia/Harbincst288008h
Asia/Macaocst288008h
Asia/Macaucst288008h
Asia/Shanghaicst288008h
Asia/Taipeicst288008h
PRCcst288008h
ROCcst288008h
America/Chicagocwt-18000-5h
America/Atikokancwt-18000-5h
America/Coral_Harbourcwt-18000-5h
America/Fort_Waynecwt-18000-5h
America/Indiana/Indianapoliscwt-18000-5h
America/Indiana/Knoxcwt-18000-5h
America/Indiana/Marengocwt-18000-5h
America/Indiana/Petersburgcwt-18000-5h
America/Indiana/Tell_Citycwt-18000-5h
America/Indiana/Vevaycwt-18000-5h
America/Indiana/Vincennescwt-18000-5h
America/Indiana/Winamaccwt-18000-5h
America/Indianapoliscwt-18000-5h
America/Kentucky/Louisvillecwt-18000-5h
America/Kentucky/Monticellocwt-18000-5h
America/Knox_INcwt-18000-5h
America/Louisvillecwt-18000-5h
America/Menomineecwt-18000-5h
America/Mexico_Citycwt-18000-5h
America/Rainy_Rivercwt-18000-5h
America/Winnipegcwt-18000-5h
Canada/Centralcwt-18000-5h
Mexico/Generalcwt-18000-5h
Pacific/Guamchst3600010h
Pacific/Saipanchst3600010h
Europe/Dublindmt-15210h
Africa/Addis_Ababaeat108003h
Africa/Khartoumeat108003h
Africa/Asmaraeat108003h
Africa/Asmeraeat108003h
Africa/Dar_es_Salaameat108003h
Africa/Djiboutieat108003h
Africa/Jubaeat108003h
Africa/Kampalaeat108003h
Africa/Mogadishueat108003h
Africa/Nairobieat108003h
Indian/Antananarivoeat108003h
Indian/Comoroeat108003h
Indian/Mayotteeat108003h
America/Iqaluiteddt-10800-3h
America/New_Yorkedt-14400-4h
America/Cancunedt-14400-4h
America/Detroitedt-14400-4h
America/Fort_Wayneedt-14400-4h
America/Grand_Turkedt-14400-4h
America/Indiana/Indianapolisedt-14400-4h
America/Indiana/Marengoedt-14400-4h
America/Indiana/Petersburgedt-14400-4h
America/Indiana/Tell_Cityedt-14400-4h
America/Indiana/Vevayedt-14400-4h
America/Indiana/Vincennesedt-14400-4h
America/Indiana/Winamacedt-14400-4h
America/Indianapolisedt-14400-4h
America/Iqaluitedt-14400-4h
America/Jamaicaedt-14400-4h
America/Kentucky/Louisvilleedt-14400-4h
America/Kentucky/Monticelloedt-14400-4h
America/Louisvilleedt-14400-4h
America/Montrealedt-14400-4h
America/Nassauedt-14400-4h
America/Nipigonedt-14400-4h
America/Pangnirtungedt-14400-4h
America/Port-au-Princeedt-14400-4h
America/Santo_Domingoedt-14400-4h
America/Thunder_Bayedt-14400-4h
America/Torontoedt-14400-4h
Canada/Easternedt-14400-4h
Europe/Helsinkieest108003h
Africa/Cairoeest108003h
Asia/Ammaneest108003h
Asia/Beiruteest108003h
Asia/Damascuseest108003h
Asia/Famagustaeest108003h
Asia/Gazaeest108003h
Asia/Hebroneest108003h
Asia/Istanbuleest108003h
Asia/Nicosiaeest108003h
Europe/Athenseest108003h
Europe/Bucharesteest108003h
Europe/Chisinaueest108003h
Europe/Istanbuleest108003h
Europe/Kaliningradeest108003h
Europe/Kieveest108003h
Europe/Mariehamneest108003h
Europe/Minskeest108003h
Europe/Moscoweest108003h
Europe/Nicosiaeest108003h
Europe/Rigaeest108003h
Europe/Simferopoleest108003h
Europe/Sofiaeest108003h
Europe/Tallinneest108003h
Europe/Tiraspoleest108003h
Europe/Uzhgorodeest108003h
Europe/Vilniuseest108003h
Europe/Warsaweest108003h
Europe/Zaporozhyeeest108003h
Europe/Helsinkieet72002h
Africa/Cairoeet72002h
Africa/Tripolieet72002h
Asia/Ammaneet72002h
Asia/Beiruteet72002h
Asia/Damascuseet72002h
Asia/Famagustaeet72002h
Asia/Gazaeet72002h
Asia/Hebroneet72002h
Asia/Istanbuleet72002h
Asia/Nicosiaeet72002h
Europe/Athenseet72002h
Europe/Bucharesteet72002h
Europe/Chisinaueet72002h
Europe/Istanbuleet72002h
Europe/Kaliningradeet72002h
Europe/Kieveet72002h
Europe/Mariehamneet72002h
Europe/Minskeet72002h
Europe/Moscoweet72002h
Europe/Nicosiaeet72002h
Europe/Rigaeet72002h
Europe/Simferopoleet72002h
Europe/Sofiaeet72002h
Europe/Tallinneet72002h
Europe/Tiraspoleet72002h
Europe/Uzhgorodeet72002h
Europe/Vilniuseet72002h
Europe/Warsaweet72002h
Europe/Zaporozhyeeet72002h
Chile/EasterIslandemt-26248-7h
Pacific/Easteremt-26248-7h
America/New_Yorkept-14400-4h
America/Detroitept-14400-4h
America/Iqaluitept-14400-4h
America/Montrealept-14400-4h
America/Nipigonept-14400-4h
America/Thunder_Bayept-14400-4h
America/Torontoept-14400-4h
Canada/Easternept-14400-4h
America/New_Yorkest-18000-5h
America/Atikokanest-18000-5h
America/Cambridge_Bayest-18000-5h
America/Cancunest-18000-5h
America/Caymanest-18000-5h
America/Chicagoest-18000-5h
America/Coral_Harbourest-18000-5h
America/Detroitest-18000-5h
America/Fort_Wayneest-18000-5h
America/Grand_Turkest-18000-5h
America/Indiana/Indianapolisest-18000-5h
America/Indiana/Knoxest-18000-5h
America/Indiana/Marengoest-18000-5h
America/Indiana/Petersburgest-18000-5h
America/Indiana/Tell_Cityest-18000-5h
America/Indiana/Vevayest-18000-5h
America/Indiana/Vincennesest-18000-5h
America/Indiana/Winamacest-18000-5h
America/Indianapolisest-18000-5h
America/Iqaluitest-18000-5h
America/Jamaicaest-18000-5h
America/Kentucky/Louisvilleest-18000-5h
America/Kentucky/Monticelloest-18000-5h
America/Knox_INest-18000-5h
America/Louisvilleest-18000-5h
America/Managuaest-18000-5h
America/Menomineeest-18000-5h
America/Meridaest-18000-5h
America/Monctonest-18000-5h
America/Montrealest-18000-5h
America/Nassauest-18000-5h
America/Nipigonest-18000-5h
America/Panamaest-18000-5h
America/Pangnirtungest-18000-5h
America/Port-au-Princeest-18000-5h
America/Rankin_Inletest-18000-5h
America/Resoluteest-18000-5h
America/Santo_Domingoest-18000-5h
America/Thunder_Bayest-18000-5h
America/Torontoest-18000-5h
Canada/Easternest-18000-5h
America/New_Yorkewt-14400-4h
America/Detroitewt-14400-4h
America/Iqaluitewt-14400-4h
America/Montrealewt-14400-4h
America/Nipigonewt-14400-4h
America/Thunder_Bayewt-14400-4h
America/Torontoewt-14400-4h
Canada/Easternewt-14400-4h
America/Martiniqueffmt-14660-4h
Atlantic/Madeirafmt-4056-1h
Pacific/Guamgdt3960011h
Pacific/Saipangdt3960011h
Africa/Abidjangmt00h
Africa/Accragmt00h
Africa/Bamakogmt00h
Africa/Banjulgmt00h
Africa/Bissaugmt00h
Africa/Conakrygmt00h
Africa/Dakargmt00h
Africa/Freetowngmt00h
Africa/Lomegmt00h
Africa/Monroviagmt00h
Africa/Nouakchottgmt00h
Africa/Ouagadougougmt00h
Africa/Sao_Tomegmt00h
Africa/Timbuktugmt00h
America/Danmarkshavngmt00h
Atlantic/Reykjavikgmt00h
Atlantic/St_Helenagmt00h
Etc/GMTgmt00h
Etc/Greenwichgmt00h
Europe/Belfastgmt00h
Europe/Dublingmt00h
Europe/Gibraltargmt00h
Europe/Guernseygmt00h
Europe/Isle_of_Mangmt00h
Europe/Jerseygmt00h
Europe/Londongmt00h
GBgmt00h
Europe/Bratislavagmt00h
Europe/Dublingmt00h
Europe/Praguegmt00h
Pacific/Guamgst3600010h
Pacific/Saipangst3600010h
Pacific/Honoluluhdt-34200-9h
America/Adakhdt-32400-9h
America/Atkahdt-32400-9h
Pacific/Johnstonhdt-34200-9h
Asia/Hong_Konghkst324009h
Asia/Hong_Konghkt288008h
Asia/Hong_Konghkt306008h
America/Havanahmt-19776-5h
Atlantic/Azoreshmt-6872-1h
Asia/Daccahmt212005h
Asia/Dhakahmt212005h
Europe/Helsinkihmt59891h
Europe/Mariehamnhmt59891h
Pacific/Honoluluhpt-34200-9h
Pacific/Johnstonhpt-34200-9h
Pacific/Honoluluhst-36000-10h
Pacific/Honoluluhst-37800-10h
America/Adakhst-36000-10h
America/Atkahst-36000-10h
Pacific/Johnstonhst-36000-10h
Pacific/Johnstonhst-37800-10h
Pacific/Honoluluhwt-34200-9h
Pacific/Johnstonhwt-34200-9h
Asia/Jerusalemiddt144004h
Asia/Tel_Avividdt144004h
Asia/Jerusalemidt108003h
Asia/Gazaidt108003h
Asia/Hebronidt108003h
Asia/Tel_Avividt108003h
Asia/Irkutskimt250256h
Asia/Istanbulimt70161h
Europe/Istanbulimt70161h
Asia/Jerusalemist72002h
Asia/Calcuttaist198005h
Asia/Kolkataist198005h
Europe/Dublinist20790h
Europe/Dublinist36001h
Europe/Dublinist36001h
Asia/Gazaist72002h
Asia/Hebronist72002h
Asia/Tel_Avivist72002h
Asia/Tokyojdt3600010h
Asia/Jerusalemjmt84402h
Asia/Tel_Avivjmt84402h
Asia/Tokyojst324009h
Asia/Hong_Kongjst324009h
Asia/Manilajst324009h
Asia/Pyongyangjst324009h
Asia/Seouljst324009h
Asia/Taipeijst324009h
ROCjst324009h
ROKjst324009h
Asia/Seoulkdt3600010h
Asia/Seoulkdt342009h
ROKkdt342009h
ROKkdt3600010h
Europe/Vilniuskmt57361h
America/Grand_Turkkmt-18430-5h
America/Jamaicakmt-18430-5h
Europe/Kievkmt73242h
Asia/Seoulkst306008h
Asia/Pyongyangkst324009h
Asia/Seoulkst324009h
Asia/Pyongyangkst306008h
ROKkst306008h
ROKkst324009h
Europe/Rigalst93942h
America/Cambridge_Baymddt-18000-5h
America/Yellowknifemddt-18000-5h
Europe/Moscowmdst162794h
America/Denvermdt-21600-6h
America/Bahia_Banderasmdt-21600-6h
America/Boisemdt-21600-6h
America/Cambridge_Baymdt-21600-6h
America/Chihuahuamdt-21600-6h
America/Edmontonmdt-21600-6h
America/Hermosillomdt-21600-6h
America/Inuvikmdt-21600-6h
America/Mazatlanmdt-21600-6h
America/North_Dakota/Beulahmdt-21600-6h
America/North_Dakota/Centermdt-21600-6h
America/North_Dakota/New_Salemmdt-21600-6h
America/Ojinagamdt-21600-6h
America/Phoenixmdt-21600-6h
America/Reginamdt-21600-6h
America/Shiprockmdt-21600-6h
America/Swift_Currentmdt-21600-6h
America/Yellowknifemdt-21600-6h
Canada/Mountainmdt-21600-6h
Canada/Saskatchewanmdt-21600-6h
Mexico/BajaSurmdt-21600-6h
METmest72002h
METmet36001h
Europe/Moscowmmt90172h
Europe/Moscowmmt90792h
America/Montevideommt-13491-3h
America/Managuammt-20712-5h
Africa/Monroviammt-25880h
Africa/Monroviammt-26700h
Indian/Maldivesmmt176404h
Asia/Colombommt191725h
Asia/Calcuttammt192705h
Asia/Kolkatammt192705h
Asia/Makassarmmt286567h
Asia/Ujung_Pandangmmt286567h
Europe/Minskmmt66001h
America/Denvermpt-21600-6h
America/Boisempt-21600-6h
America/Cambridge_Baympt-21600-6h
America/Edmontonmpt-21600-6h
America/North_Dakota/Beulahmpt-21600-6h
America/North_Dakota/Centermpt-21600-6h
America/North_Dakota/New_Salemmpt-21600-6h
America/Reginampt-21600-6h
America/Shiprockmpt-21600-6h
America/Swift_Currentmpt-21600-6h
America/Yellowknifempt-21600-6h
Canada/Mountainmpt-21600-6h
Canada/Saskatchewanmpt-21600-6h
Europe/Moscowmsd144004h
Europe/Chisinaumsd144004h
Europe/Kaliningradmsd144004h
Europe/Kievmsd144004h
Europe/Minskmsd144004h
Europe/Rigamsd144004h
Europe/Simferopolmsd144004h
Europe/Tallinnmsd144004h
Europe/Tiraspolmsd144004h
Europe/Uzhgorodmsd144004h
Europe/Vilniusmsd144004h
Europe/Zaporozhyemsd144004h
Europe/Moscowmsk108003h
Europe/Moscowmsk144004h
Europe/Chisinaumsk108003h
Europe/Kaliningradmsk108003h
Europe/Kievmsk108003h
Europe/Minskmsk108003h
Europe/Rigamsk108003h
Europe/Simferopolmsk108003h
Europe/Tallinnmsk108003h
Europe/Tiraspolmsk108003h
Europe/Uzhgorodmsk108003h
Europe/Vilniusmsk108003h
Europe/Zaporozhyemsk108003h
Europe/Simferopolmsk144004h
America/Denvermst-25200-7h
America/Bahia_Banderasmst-25200-7h
America/Boisemst-25200-7h
America/Cambridge_Baymst-25200-7h
America/Chihuahuamst-25200-7h
America/Crestonmst-25200-7h
America/Dawson_Creekmst-25200-7h
America/Edmontonmst-25200-7h
America/Ensenadamst-25200-7h
America/Fort_Nelsonmst-25200-7h
America/Hermosillomst-25200-7h
America/Inuvikmst-25200-7h
America/Mazatlanmst-25200-7h
America/Mexico_Citymst-25200-7h
America/North_Dakota/Beulahmst-25200-7h
America/North_Dakota/Centermst-25200-7h
America/North_Dakota/New_Salemmst-25200-7h
America/Ojinagamst-25200-7h
America/Phoenixmst-25200-7h
America/Reginamst-25200-7h
America/Santa_Isabelmst-25200-7h
America/Shiprockmst-25200-7h
America/Swift_Currentmst-25200-7h
America/Tijuanamst-25200-7h
America/Yellowknifemst-25200-7h
Canada/Mountainmst-25200-7h
Canada/Saskatchewanmst-25200-7h
Mexico/BajaNortemst-25200-7h
Mexico/BajaSurmst-25200-7h
Mexico/Generalmst-25200-7h
Europe/Moscowmst126793h
America/Denvermwt-21600-6h
America/Boisemwt-21600-6h
America/Cambridge_Baymwt-21600-6h
America/Edmontonmwt-21600-6h
America/North_Dakota/Beulahmwt-21600-6h
America/North_Dakota/Centermwt-21600-6h
America/North_Dakota/New_Salemmwt-21600-6h
America/Phoenixmwt-21600-6h
America/Reginamwt-21600-6h
America/Shiprockmwt-21600-6h
America/Swift_Currentmwt-21600-6h
America/Yellowknifemwt-21600-6h
Canada/Mountainmwt-21600-6h
Canada/Saskatchewanmwt-21600-6h
America/St_Johnsnddt-5400-1h
Canada/Newfoundlandnddt-5400-1h
America/St_Johnsndt-9052-2h
America/St_Johnsndt-9000-2h
America/Goose_Bayndt-9000-2h
Canada/Newfoundlandndt-9000-2h
America/Goose_Bayndt-9052-2h
Canada/Newfoundlandndt-9052-2h
America/St_Johnsnpt-9000-2h
America/Adaknpt-36000-10h
America/Atkanpt-36000-10h
America/Nomenpt-36000-10h
America/Goose_Baynpt-9000-2h
Canada/Newfoundlandnpt-9000-2h
America/St_Johnsnst-12600-3h
America/St_Johnsnst-12652-3h
Europe/Amsterdamnst47721h
America/Goose_Baynst-12600-3h
Canada/Newfoundlandnst-12600-3h
America/Goose_Baynst-12652-3h
Canada/Newfoundlandnst-12652-3h
America/Adaknst-39600-11h
America/Atkanst-39600-11h
America/Nomenst-39600-11h
America/St_Johnsnwt-9000-2h
America/Adaknwt-36000-10h
America/Atkanwt-36000-10h
America/Nomenwt-36000-10h
America/Goose_Baynwt-9000-2h
Canada/Newfoundlandnwt-9000-2h
Pacific/Aucklandnzdt4680013h
Antarctica/McMurdonzdt4680013h
Antarctica/South_Polenzdt4680013h
NZnzdt4680013h
Pacific/Aucklandnzmt4140011h
Antarctica/McMurdonzmt4140011h
Antarctica/South_Polenzmt4140011h
NZnzmt4140011h
Pacific/Aucklandnzst4320012h
Pacific/Aucklandnzst4320012h
Pacific/Aucklandnzst4500012h
Antarctica/McMurdonzst4320012h
Antarctica/South_Polenzst4320012h
NZnzst4320012h
Antarctica/McMurdonzst4320012h
Antarctica/South_Polenzst4320012h
NZnzst4320012h
Antarctica/McMurdonzst4500012h
Antarctica/South_Polenzst4500012h
NZnzst4500012h
America/Inuvikpddt-21600-6h
America/Los_Angelespdt-25200-7h
America/Boisepdt-25200-7h
America/Dawsonpdt-25200-7h
America/Dawson_Creekpdt-25200-7h
America/Ensenadapdt-25200-7h
America/Fort_Nelsonpdt-25200-7h
America/Juneaupdt-25200-7h
America/Metlakatlapdt-25200-7h
America/Santa_Isabelpdt-25200-7h
America/Sitkapdt-25200-7h
America/Tijuanapdt-25200-7h
America/Vancouverpdt-25200-7h
America/Whitehorsepdt-25200-7h
Canada/Pacificpdt-25200-7h
Canada/Yukonpdt-25200-7h
Mexico/BajaNortepdt-25200-7h
Asia/Manilapdt324009h
Asia/Karachipkst216006h
Asia/Karachipkt180005h
Asia/Ho_Chi_Minhplmt255907h
Asia/Saigonplmt255907h
America/Paramaribopmt-13236-3h
America/Paramaribopmt-13252-3h
Asia/Yekaterinburgpmt135053h
Asia/Pontianakpmt262407h
Africa/Algierspmt5610h
Africa/Tunispmt5610h
Europe/Monacopmt5610h
Europe/Parispmt5610h
America/Port-au-Princeppmt-17340-4h
America/Los_Angelesppt-25200-7h
America/Dawson_Creekppt-25200-7h
America/Ensenadappt-25200-7h
America/Fort_Nelsonppt-25200-7h
America/Juneauppt-25200-7h
America/Metlakatlappt-25200-7h
America/Santa_Isabelppt-25200-7h
America/Sitkappt-25200-7h
America/Tijuanappt-25200-7h
America/Vancouverppt-25200-7h
Canada/Pacificppt-25200-7h
Mexico/BajaNorteppt-25200-7h
America/Los_Angelespst-28800-8h
America/Bahia_Banderaspst-28800-8h
America/Boisepst-28800-8h
America/Crestonpst-28800-8h
America/Dawsonpst-28800-8h
America/Dawson_Creekpst-28800-8h
America/Ensenadapst-28800-8h
America/Fort_Nelsonpst-28800-8h
America/Hermosillopst-28800-8h
America/Inuvikpst-28800-8h
America/Juneaupst-28800-8h
America/Mazatlanpst-28800-8h
America/Metlakatlapst-28800-8h
America/Santa_Isabelpst-28800-8h
America/Sitkapst-28800-8h
America/Tijuanapst-28800-8h
America/Vancouverpst-28800-8h
America/Whitehorsepst-28800-8h
Canada/Pacificpst-28800-8h
Canada/Yukonpst-28800-8h
Mexico/BajaNortepst-28800-8h
Mexico/BajaSurpst-28800-8h
Asia/Manilapst288008h
America/Los_Angelespwt-25200-7h
America/Dawson_Creekpwt-25200-7h
America/Ensenadapwt-25200-7h
America/Fort_Nelsonpwt-25200-7h
America/Juneaupwt-25200-7h
America/Metlakatlapwt-25200-7h
America/Santa_Isabelpwt-25200-7h
America/Sitkapwt-25200-7h
America/Tijuanapwt-25200-7h
America/Vancouverpwt-25200-7h
Canada/Pacificpwt-25200-7h
Mexico/BajaNortepwt-25200-7h
America/Guayaquilqmt-18840-5h
Europe/Rigarmt57941h
Asia/Rangoonrmt230876h
Asia/Yangonrmt230876h
Africa/Johannesburgsast72002h
Africa/Johannesburgsast108003h
Africa/Johannesburgsast54001h
Africa/Maserusast108003h
Africa/Mbabanesast108003h
Africa/Windhoeksast108003h
Africa/Maserusast54001h
Africa/Mbabanesast54001h
Africa/Maserusast72002h
Africa/Mbabanesast72002h
Africa/Windhoeksast72002h
America/Santo_Domingosdmt-16800-4h
America/Costa_Ricasjmt-20173-5h
Atlantic/Stanleysmt-13884-3h
America/Punta_Arenassmt-16966-4h
America/Santiagosmt-16966-4h
Chile/Continentalsmt-16966-4h
Asia/Kuala_Lumpursmt249256h
Asia/Singaporesmt249256h
Europe/Simferopolsmt81602h
Pacific/Samoasst-39600-11h
Pacific/Midwaysst-39600-11h
Pacific/Pago_Pagosst-39600-11h
Asia/Tbilisitbmt107512h
Asia/Tehrantmt123443h
Europe/Tallinntmt59401h
Etc/UCTuct00h
Etc/Universalutc00h
Etc/UTCutc00h
Etc/Zuluutc00h
UTCutc00h
UTCutc00h
Africa/Windhoekwast72002h
Africa/Ndjamenawast72002h
Africa/Brazzavillewat36001h
Africa/Banguiwat36001h
Africa/Doualawat36001h
Africa/Kinshasawat36001h
Africa/Lagoswat36001h
Africa/Librevillewat36001h
Africa/Luandawat36001h
Africa/Malabowat36001h
Africa/Ndjamenawat36001h
Africa/Niameywat36001h
Africa/Porto-Novowat36001h
Africa/Sao_Tomewat36001h
Africa/Windhoekwat36001h
Europe/Lisbonwemt72002h
Europe/Madridwemt72002h
Europe/Monacowemt72002h
Europe/Pariswemt72002h
Europe/Pariswest36001h
Europe/Luxembourgwest72002h
Africa/Algierswest36001h
Africa/Ceutawest36001h
Atlantic/Canarywest36001h
Atlantic/Faeroewest36001h
Atlantic/Faroewest36001h
Atlantic/Madeirawest36001h
Europe/Brusselswest36001h
Europe/Lisbonwest36001h
Europe/Luxembourgwest36001h
Europe/Madridwest36001h
Europe/Monacowest36001h
Europe/Pariswet00h
Europe/Luxembourgwet36001h
Africa/Algierswet00h
Africa/Ceutawet00h
Atlantic/Azoreswet00h
Atlantic/Canarywet00h
Atlantic/Faeroewet00h
Atlantic/Faroewet00h
Atlantic/Madeirawet00h
Europe/Andorrawet00h
Europe/Brusselswet00h
Europe/Lisbonwet00h
Europe/Luxembourgwet00h
Europe/Madridwet00h
Europe/Monacowet00h
Asia/Jakartawib252007h
Asia/Pontianakwib252007h
Asia/Makassarwita288008h
Asia/Pontianakwita288008h
Asia/Ujung_Pandangwita288008h
Asia/Jayapurawit324009h
Europe/Vilniuswmt50401h
Europe/Warsawwmt50401h
America/Dawsonyddt-25200-7h
America/Whitehorseyddt-25200-7h
Canada/Yukonyddt-25200-7h
America/Dawsonydt-28800-8h
America/Juneauydt-28800-8h
America/Whitehorseydt-28800-8h
America/Yakutatydt-28800-8h
Canada/Yukonydt-28800-8h
America/Dawsonypt-28800-8h
America/Whitehorseypt-28800-8h
America/Yakutatypt-28800-8h
Canada/Yukonypt-28800-8h
America/Anchorageyst-32400-9h
America/Dawsonyst-32400-9h
America/Juneauyst-32400-9h
America/Nomeyst-32400-9h
America/Sitkayst-32400-9h
America/Whitehorseyst-32400-9h
America/Yakutatyst-32400-9h
Canada/Yukonyst-32400-9h
America/Dawsonywt-28800-8h
America/Whitehorseywt-28800-8h
America/Yakutatywt-28800-8h
Canada/Yukonywt-28800-8h
a36001h
b72002h
c108003h
d144004h
e180005h
f216006h
g252007h
h288008h
i324009h
k3600010h
l3960011h
m4320012h
n-3600-1h
o-7200-2h
p-10800-3h
q-14400-4h
r-18000-5h
s-21600-6h
t-25200-7h
u-28800-8h
v-32400-9h
w-36000-10h
x-39600-11h
y-43200-12h
z00h
ed48



This function returns FALSE on failure.



  1 EXERCISE   

<?php

$tz_start 
= new DateTimeZone('America/Sao_Paulo');
$tz_end = new DateTime('America/Los_Angeles');

$str_offset timezone_offset_get($tz_start$tz_end);

echo 
'Offset = ' $str_offset 's = ' $str_offset/3600 'h<br><br>';

?>

  2 EXERCISE   

<?php

$tz02a 
'America/Sao_Paulo';

$tz02b ='America/Los_Angeles';

$dttz02a = new DateTimeZone($tz02a);
$dttz02b = new DateTimeZone($tz02b);

$dt02a = new DateTime("now"$dttz02a);
$dt02b = new DateTime("now"$dttz02b);

$tmof02ab $dttz02b->getOffset($dt02a);

echo 
'Offset = ' $tmof02ab 's = ' $tmof02ab/3600 'h<br><br>';

$mts time();

$tz_as_set date_default_timezone_set('America/Sao_Paulo');
$def_tas_get_now date_default_timezone_get();

// It may be difficult to display characters 
// other than the English language.

echo '<span class="z00f">' $def_tas_get_now '</span><br>';
setlocale(LC_ALL"pt_BR.utf-8""portuguese-brazil""ptb");
$mpt_strf "%A, %d de %B de %Y %Hh %Mmin %Ss";
$fmpt_s strftime($mpt_strf$mts);
echo 
$fmpt_s '<br><br><br>';

$tz_la_set date_default_timezone_set('America/Los_Angeles');
$def_tla_get_now date_default_timezone_get();
echo 
'<span class="z00f">' $def_tla_get_now '</span><br>';
setlocale(LC_ALL"en_US""american""american english""american-english""english-american""english-us""english-usa""enu""us""usa");
$men_strf "%A, %B/%d/%Y %Hh %Mmin %Ss";
$fmen_l strftime($men_strf$mts);
echo 
$fmen_l '<br><br><br>';

$tz_utc_set date_default_timezone_set('UTC');
$def_tutc_get_now date_default_timezone_get();
echo 
'<span class="z00f">' $def_tutc_get_now '</span><br>';
setlocale(LC_ALL"en_US""american""american english""american-english""english-american""english-us""english-usa""enu""us""usa");
$men_strf "%A, %B/%d/%Y %Hh %Mmin %Ss";
$fmen_u strftime($men_strf$mts);
echo 
$fmen_u;

?>