php中如何设置时区(PHP5时区)

PHP 支持的时区

php中如何设置时区(PHP5时区)(1)

下面是 PHP 支持的时区的完整列表,这些对一些 PHP 日期函数很有用。

  • 非洲

  • 美洲

  • 南极洲

  • 北冰洋

  • 亚洲

  • 大西洋

  • 大洋洲

  • 欧洲

  • 印度洋

  • 太平洋


php中如何设置时区(PHP5时区)(2)

Africa/AbidjanAfrica/AccraAfrica/Addis_AbabaAfrica/AlgiersAfrica/AsmaraAfrica/AsmeraAfrica/BamakoAfrica/BanguiAfrica/BanjulAfrica/BissauAfrica/BlantyreAfrica/BrazzavilleAfrica/BujumburaAfrica/CairoAfrica/CasablancaAfrica/CeutaAfrica/ConakryAfrica/DakarAfrica/Dar_es_SalaamAfrica/DjiboutiAfrica/DoualaAfrica/El_AaiunAfrica/FreetownAfrica/GaboroneAfrica/HarareAfrica/JohannesburgAfrica/JubaAfrica/KampalaAfrica/KhartoumAfrica/KigaliAfrica/KinshasaAfrica/LagosAfrica/LibrevilleAfrica/LomeAfrica/LuandaAfrica/LubumbashiAfrica/LusakaAfrica/MalaboAfrica/MaputoAfrica/MaseruAfrica/MbabaneAfrica/MogadishuAfrica/MonroviaAfrica/NairobiAfrica/NdjamenaAfrica/NiameyAfrica/NouakchottAfrica/OuagadougouAfrica/Porto-NovoAfrica/Sao_TomeAfrica/TimbuktuAfrica/TripoliAfrica/TunisAfrica/Windhoek

美洲

America/AdakAmerica/AnchorageAmerica/Anguilla
America/AntiguaAmerica/AraguainaAmerica/Argentina/Buenos_Aires
America/Argentina/CatamarcaAmerica/Argentina/ComodRivadaviaAmerica/Argentina/Cordoba
America/Argentina/JujuyAmerica/Argentina/La_RiojaAmerica/Argentina/Mendoza
America/Argentina/Rio_GallegosAmerica/Argentina/SaltaAmerica/Argentina/San_Juan
America/Argentina/San_LuisAmerica/Argentina/TucumanAmerica/Argentina/Ushuaia
America/ArubaAmerica/AsuncionAmerica/Atikokan
America/AtkaAmerica/BahiaAmerica/Bahia_Banderas
America/BarbadosAmerica/BelemAmerica/Belize
America/Blanc-SablonAmerica/Boa_VistaAmerica/Bogota
America/BoiseAmerica/Buenos_AiresAmerica/Cambridge_Bay
America/Campo_GrandeAmerica/CancunAmerica/Caracas
America/CatamarcaAmerica/CayenneAmerica/Cayman
America/ChicagoAmerica/ChihuahuaAmerica/Coral_Harbour
America/CordobaAmerica/Costa_RicaAmerica/Creston
America/CuiabaAmerica/CuracaoAmerica/Danmarkshavn
America/DawsonAmerica/Dawson_CreekAmerica/Denver
America/DetroitAmerica/DominicaAmerica/Edmonton
America/EirunepeAmerica/El_SalvadorAmerica/Ensenada
America/Fort_WayneAmerica/FortalezaAmerica/Glace_Bay
America/GodthabAmerica/Goose_BayAmerica/Grand_Turk
America/GrenadaAmerica/GuadeloupeAmerica/Guatemala
America/GuayaquilAmerica/GuyanaAmerica/Halifax
America/HavanaAmerica/HermosilloAmerica/Indiana/Indianapolis
America/Indiana/KnoxAmerica/Indiana/MarengoAmerica/Indiana/Petersburg
America/Indiana/Tell_CityAmerica/Indiana/VevayAmerica/Indiana/Vincennes
America/Indiana/WinamacAmerica/IndianapolisAmerica/Inuvik
America/IqaluitAmerica/JamaicaAmerica/Jujuy
America/JuneauAmerica/Kentucky/LouisvilleAmerica/Kentucky/Monticello
America/Knox_INAmerica/KralendijkAmerica/La_Paz
America/LimaAmerica/Los_AngelesAmerica/Louisville
America/Lower_PrincesAmerica/MaceioAmerica/Managua
America/ManausAmerica/MarigotAmerica/Martinique
America/MatamorosAmerica/MazatlanAmerica/Mendoza
America/MenomineeAmerica/MeridaAmerica/Metlakatla
America/Mexico_CityAmerica/MiquelonAmerica/Moncton
America/MonterreyAmerica/MontevideoAmerica/Montreal
America/MontserratAmerica/NassauAmerica/New_York
America/NipigonAmerica/NomeAmerica/Noronha
America/North_Dakota/BeulahAmerica/North_Dakota/CenterAmerica/North_Dakota/New_Salem
America/OjinagaAmerica/PanamaAmerica/Pangnirtung
America/ParamariboAmerica/PhoenixAmerica/Port-au-Prince
America/Port_of_SpainAmerica/Porto_AcreAmerica/Porto_Velho
America/Puerto_RicoAmerica/Rainy_RiverAmerica/Rankin_Inlet
America/RecifeAmerica/ReginaAmerica/Resolute
America/Rio_BrancoAmerica/RosarioAmerica/Santa_Isabel
America/SantaremAmerica/SantiagoAmerica/Santo_Domingo
America/Sao_PauloAmerica/ScoresbysundAmerica/Shiprock
America/SitkaAmerica/St_BarthelemyAmerica/St_Johns
America/St_KittsAmerica/St_LuciaAmerica/St_Thomas
America/St_VincentAmerica/Swift_CurrentAmerica/Tegucigalpa
America/ThuleAmerica/Thunder_BayAmerica/Tijuana
America/TorontoAmerica/TortolaAmerica/Vancouver
America/VirginAmerica/WhitehorseAmerica/Winnipeg
America/YakutatAmerica/Yellowknife

php中如何设置时区(PHP5时区)(3)

南极洲

AntArctica/CaseyAntarctica/DavisAntarctica/DumontDUrvilleAntarctica/MacquarieAntarctica/Mawson
Antarctica/McMurdoAntarctica/PalmerAntarctica/RotheraAntarctica/South_PoleAntarctica/Syowa
Antarctica/Vostok

北冰洋

Arctic/Longyearbyen

亚洲

Asia/AdenAsia/AlmatyAsia/AmmanAsia/AnadyrAsia/Aqtau
Asia/AqtobeAsia/AshgabatAsia/AshkhabadAsia/BaghdadAsia/Bahrain
Asia/BakuAsia/BangkokAsia/BeirutAsia/BishkekAsia/Brunei
Asia/CalcuttaAsia/ChoibalsanAsia/ChongqingAsia/ChungkingAsia/Colombo
Asia/DaccaAsia/DamascusAsia/DhakaAsia/DiliAsia/Dubai
Asia/DushanbeAsia/GazaAsia/HarbinAsia/HebronAsia/Ho_Chi_Minh
Asia/Hong_KongAsia/HovdAsia/IrkutskAsia/IstanbulAsia/Jakarta
Asia/JayapuraAsia/JerusalemAsia/KabulAsia/KamchatkaAsia/Karachi
Asia/KashgarAsia/KathmanduAsia/KatmanduAsia/KhandygaAsia/Kolkata
Asia/KrasnoyarskAsia/Kuala_LumpurAsia/KuchingAsia/KuwaitAsia/Macao
Asia/MacauAsia/MagadanAsia/MakassarAsia/ManilaAsia/Muscat
Asia/NicosiaAsia/NovokuznetskAsia/NovosibirskAsia/OmskAsia/Oral
Asia/Phnom_PenhAsia/PontianakAsia/PyongyangAsia/QatarAsia/Qyzylorda
Asia/RangoonAsia/RiyadhAsia/SaigonAsia/SakhalinAsia/Samarkand
Asia/SeoulAsia/ShanghaiAsia/SingaporeAsia/TaipeiAsia/Tashkent
Asia/TbilisiAsia/TehranAsia/Tel_AvivAsia/ThimbuAsia/Thimphu
Asia/TokyoAsia/Ujung_PandangAsia/UlaanbaatarAsia/Ulan_BatorAsia/Urumqi
Asia/Ust-NeraAsia/VientianeAsia/VladivostokAsia/YakutskAsia/Yekaterinburg
Asia/Yerevan

大西洋

Atlantic/AzoresAtlantic/BermudaAtlantic/CanaryAtlantic/Cape_VerdeAtlantic/Faeroe
Atlantic/FaroeAtlantic/Jan_MayenAtlantic/MadeiraAtlantic/ReykjavikAtlantic/South_Georgia
Atlantic/St_HelenaAtlantic/Stanley

大洋洲

Australia/ACTAustralia/AdelaideAustralia/BrisbaneAustralia/Broken_HillAustralia/Canberra
Australia/CurrieAustralia/DarwinAustralia/EuclaAustralia/HobartAustralia/LHI
Australia/LindemanAustralia/Lord_HoweAustralia/MelbourneAustralia/NorthAustralia/NSW
Australia/PerthAustralia/QueenslandAustralia/SouthAustralia/SydneyAustralia/Tasmania
Australia/VictoriaAustralia/WestAustralia/Yancowinna

欧洲

Europe/AmsterdamEurope/AndorraEurope/AthensEurope/BelfastEurope/Belgrade
Europe/BerlinEurope/BratislavaEurope/BrusselsEurope/BucharestEurope/Budapest
Europe/BusingenEurope/ChisinauEurope/CopenhagenEurope/DublinEurope/Gibraltar
Europe/GuernseyEurope/HelsinkiEurope/Isle_of_ManEurope/IstanbulEurope/Jersey
Europe/KaliningradEurope/KievEurope/LisbonEurope/LjubljanaEurope/London
Europe/LuxembourgEurope/MadridEurope/MaltaEurope/MariehamnEurope/Minsk
Europe/MonacoEurope/MoscowEurope/NicosiaEurope/OsloEurope/Paris
Europe/PodgoricaEurope/PragueEurope/RigaEurope/RomeEurope/Samara
Europe/San_MarinoEurope/SarajevoEurope/SimferopolEurope/SkopjeEurope/Sofia
Europe/StockholmEurope/TallinnEurope/TiraneEurope/TiraspolEurope/Uzhgorod
Europe/VaduzEurope/VaticanEurope/ViennaEurope/VilniusEurope/Volgograd
Europe/WarsawEurope/ZagrebEurope/ZaporozhyeEurope/Zurich

印度洋

Indian/AntananarivoIndian/ChagosIndian/ChristmasIndian/CocosIndian/Comoro
Indian/KerguelenIndian/MaheIndian/MaldivesIndian/MauritiusIndian/Mayotte
Indian/Reunion

太平洋

Pacific/ApiaPacific/AucklandPacific/ChathamPacific/ChuukPacific/Easter
Pacific/EfatePacific/EnderburyPacific/FakaofoPacific/FijiPacific/Funafuti
Pacific/GalapagosPacific/GambierPacific/GuadalcanalPacific/GuamPacific/Honolulu
Pacific/JohnstonPacific/KiritimatiPacific/KosraePacific/KwajaleinPacific/Majuro
Pacific/MarquesasPacific/MidwayPacific/NauruPacific/NiuePacific/Norfolk
Pacific/NoumeaPacific/Pago_PagoPacific/PalauPacific/PitcairnPacific/Pohnpei
Pacific/PonapePacific/Port_MoresbyPacific/RarotongaPacific/SaipanPacific/Samoa
Pacific/TahitiPacific/TarawaPacific/TongatapuPacific/TrukPacific/Wake
Pacific/WallisPacific/Yap

,

免责声明:本文仅代表文章作者的个人观点,与本站无关。其原创性、真实性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容文字的真实性、完整性和原创性本站不作任何保证或承诺,请读者仅作参考,并自行核实相关内容。文章投诉邮箱:anhduc.ph@yahoo.com

    分享
    投诉
    首页