Skip to main content
Module

x/time.ts/lib/api.ts

Time.ts - A straightforward Deno timezone manipulation
Go to Latest
File
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008
/** * MIT License * Copyright (c) 2020 Burhanuddin Ahmed */

export const timezone = [ { "text": "(GMT+00:00) Bissau", "id": "Africa/Bissau" }, { "text": "(GMT+02:00) Athens", "id": "Europe/Athens" }, { "text": "(GMT+05:00) Dushanbe", "id": "Asia/Dushanbe" }, { "text": "(GMT+00:00) Faeroe", "id": "Atlantic/Faroe" }, { "text": "(GMT+02:00) Helsinki", "id": "Europe/Helsinki" }, { "text": "(GMT-04:30) Caracas", "id": "America/Caracas" }, { "text": "(GMT-04:00) Manaus", "id": "America/Manaus" }, { "text": "(GMT+00:00) Accra", "id": "Africa/Accra" }, { "text": "(GMT+03:00) Riyadh", "id": "Asia/Riyadh" }, { "text": "(GMT+13:00) Fiji", "id": "Pacific/Fiji" }, { "text": "(GMT-06:00) Central Time - Winnipeg", "id": "America/Winnipeg" }, { "text": "(GMT-05:00) Lima", "id": "America/Lima" }, { "text": "(GMT+02:00) Damascus", "id": "Asia/Damascus" }, { "text": "(GMT+11:00) Noumea", "id": "Pacific/Noumea" }, { "text": "(GMT-05:00) Easter Island", "id": "Pacific/Easter" }, { "text": "(GMT-04:00) La Paz", "id": "America/La_Paz" }, { "text": "(GMT+01:00) Gibraltar", "id": "Europe/Gibraltar" }, { "text": "(GMT+00:00) Canary Islands", "id": "Atlantic/Canary" }, { "text": "(GMT+02:00) Beirut", "id": "Asia/Beirut" }, { "text": "(GMT+05:45) Katmandu", "id": "Asia/Katmandu" }, { "text": "(GMT+13:00) Tongatapu", "id": "Pacific/Tongatapu" }, { "text": "(GMT-05:00) Eastern Time", "id": "America/New_York" }, { "text": "(GMT-03:00) Palmer", "id": "Antarctica/Palmer" }, { "text": "(GMT-02:00) Noronha", "id": "America/Noronha" }, { "text": "(GMT+01:00) Rome", "id": "Europe/Rome" }, { "text": "(GMT+04:00) Reunion", "id": "Indian/Reunion" }, { "text": "(GMT+05:30) Colombo", "id": "Asia/Colombo" }, { "text": "(GMT+08:00) Casey", "id": "Antarctica/Casey" }, { "text": "(GMT+12:00) Wallis", "id": "Pacific/Wallis" }, { "text": "(GMT-08:00) Pacific Time", "id": "America/Los_Angeles" }, { "text": "(GMT-01:00) Azores", "id": "Atlantic/Azores" }, { "text": "(GMT+01:00) Luxembourg", "id": "Europe/Luxembourg" }, { "text": "(GMT+02:00) Bucharest", "id": "Europe/Bucharest" }, { "text": "(GMT+06:00) Moscow+03 - Omsk, Novosibirsk", "id": "Asia/Omsk" }, { "text": "(GMT+02:00) Moscow-01 - Kaliningrad", "id": "Europe/Kaliningrad" }, { "text": "(GMT+02:00) Chisinau", "id": "Europe/Chisinau" }, { "text": "(GMT+04:00) Dubai", "id": "Asia/Dubai" }, { "text": "(GMT+02:00) Istanbul", "id": "Europe/Istanbul" }, { "text": "(GMT-10:00) Tahiti", "id": "Pacific/Tahiti" }, { "text": "(GMT+06:00) Thimphu", "id": "Asia/Thimphu" }, { "text": "(GMT-06:00) Managua", "id": "America/Managua" }, { "text": "(GMT+04:00) Mahe", "id": "Indian/Mahe" }, { "text": "(GMT+05:00) Karachi", "id": "Asia/Karachi" }, { "text": "(GMT+12:00) Majuro", "id": "Pacific/Majuro" }, { "text": "(GMT+00:00) Abidjan", "id": "Africa/Abidjan" }, { "text": "(GMT+07:00) Jakarta", "id": "Asia/Jakarta" }, { "text": "(GMT+10:30) Central Time - Adelaide", "id": "Australia/Adelaide" }, { "text": "(GMT-05:00) Eastern Time - Toronto", "id": "America/Toronto" }, { "text": "(GMT-03:00) Salvador", "id": "America/Bahia" }, { "text": "(GMT+06:30) Rangoon", "id": "Asia/Rangoon" }, { "text": "(GMT+12:00) Kwajalein", "id": "Pacific/Kwajalein" }, { "text": "(GMT+12:00) Wake", "id": "Pacific/Wake" }, { "text": "(GMT-10:00) Hawaii Time", "id": "Pacific/Honolulu" }, { "text": "(GMT+04:00) Mauritius", "id": "Indian/Mauritius" }, { "text": "(GMT+08:00) Singapore", "id": "Asia/Singapore" }, { "text": "(GMT+09:30) Central Time - Darwin", "id": "Australia/Darwin" }, { "text": "(GMT+11:00) Ponape", "id": "Pacific/Pohnpei" }, { "text": "(GMT+03:30) Tehran", "id": "Asia/Tehran" }, { "text": "(GMT+04:00) Moscow+01 - Samara", "id": "Europe/Samara" }, { "text": "(GMT+07:00) Hovd", "id": "Asia/Hovd" }, { "text": "(GMT+03:00) Moscow+00 - Moscow", "id": "Europe/Moscow" }, { "text": "(GMT+05:00) Tashkent", "id": "Asia/Tashkent" }, { "text": "(GMT-03:00) Montevideo", "id": "America/Montevideo" }, { "text": "(GMT+01:00) Stockholm", "id": "Europe/Stockholm" }, { "text": "(GMT+02:00) Riga", "id": "Europe/Riga" }, { "text": "(GMT+01:00) Vienna", "id": "Europe/Vienna" }, { "text": "(GMT+02:00) Tripoli", "id": "Africa/Tripoli" }, { "text": "(GMT+06:00) Almaty", "id": "Asia/Almaty" }, { "text": "(GMT+09:00) Seoul", "id": "Asia/Seoul" }, { "text": "(GMT+11:00) Norfolk", "id": "Pacific/Norfolk" }, { "text": "(GMT-06:00) Central Time - Tegucigalpa", "id": "America/Tegucigalpa" }, { "text": "(GMT-05:00) Rio Branco", "id": "America/Rio_Branco" }, { "text": "(GMT-04:00) Barbados", "id": "America/Barbados" }, { "text": "(GMT+10:00) Port Moresby", "id": "Pacific/Port_Moresby" }, { "text": "(GMT+00:00) Danmarkshavn", "id": "America/Danmarkshavn" }, { "text": "(GMT+02:00) Tallinn", "id": "Europe/Tallinn" }, { "text": "(GMT+10:00) Moscow+07 - Yuzhno-Sakhalinsk", "id": "Asia/Vladivostok" }, { "text": "(GMT+02:00) Cairo", "id": "Africa/Cairo" }, { "text": "(GMT+00:00) Reykjavik", "id": "Atlantic/Reykjavik" }, { "text": "(GMT-07:00) Mountain Time - Dawson Creek", "id": "America/Dawson_Creek" }, { "text": "(GMT-06:00) Central Time", "id": "America/Chicago" }, { "text": "(GMT-04:00) Porto Velho", "id": "America/Porto_Velho" }, { "text": "(GMT+09:00) Moscow+06 - Yakutsk", "id": "Asia/Yakutsk" }, { "text": "(GMT-01:00) Cape Verde", "id": "Atlantic/Cape_Verde" }, { "text": "(GMT+05:00) Maldives", "id": "Indian/Maldives" }, { "text": "(GMT+08:00) Choibalsan", "id": "Asia/Choibalsan" }, { "text": "(GMT-03:00) Belem", "id": "America/Belem" }, { "text": "(GMT+02:00) Jerusalem", "id": "Asia/Jerusalem" }, { "text": "(GMT+13:00) Fakaofo", "id": "Pacific/Fakaofo" }, { "text": "(GMT+00:00) London", "id": "Europe/London" }, { "text": "(GMT+01:00) Andorra", "id": "Europe/Andorra" }, { "text": "(GMT-09:30) Marquesas", "id": "Pacific/Marquesas" }, { "text": "(GMT+00:00) Casablanca", "id": "Africa/Casablanca" }, { "text": "(GMT+00:00) GMT (no daylight saving)", "id": "Etc/GMT" }, { "text": "(GMT-01:00) Scoresbysund", "id": "America/Scoresbysund" }, { "text": "(GMT+02:00) Maputo", "id": "Africa/Maputo" }, { "text": "(GMT+07:00) Davis", "id": "Antarctica/Davis" }, { "text": "(GMT-07:00) Mountain Time - Hermosillo", "id": "America/Hermosillo" }, { "text": "(GMT-06:00) Guatemala", "id": "America/Guatemala" }, { "text": "(GMT-03:00) Asuncion", "id": "America/Asuncion" }, { "text": "(GMT-05:00) Eastern Time - Iqaluit", "id": "America/Iqaluit" }, { "text": "(GMT+03:00) Nairobi", "id": "Africa/Nairobi" }, { "text": "(GMT+05:00) Mawson", "id": "Antarctica/Mawson" }, { "text": "(GMT-07:00) Mountain Time", "id": "America/Denver" }, { "text": "(GMT-05:00) Bogota", "id": "America/Bogota" }, { "text": "(GMT+03:00) Khartoum", "id": "Africa/Khartoum" }, { "text": "(GMT+03:00) Baghdad", "id": "Asia/Baghdad" }, { "text": "(GMT+05:00) Kerguelen", "id": "Indian/Kerguelen" }, { "text": "(GMT-03:00) Miquelon", "id": "America/Miquelon" }, { "text": "(GMT+00:00) El Aaiun", "id": "Africa/El_Aaiun" }, { "text": "(GMT+01:00) Algiers", "id": "Africa/Algiers" }, { "text": "(GMT+12:00) Funafuti", "id": "Pacific/Funafuti" }, { "text": "(GMT+01:00) Lagos", "id": "Africa/Lagos" }, { "text": "(GMT+04:00) Yerevan", "id": "Asia/Yerevan" }, { "text": "(GMT+08:00) Macau", "id": "Asia/Macau" }, { "text": "(GMT+05:00) Ashgabat", "id": "Asia/Ashgabat" }, { "text": "(GMT+07:00) Christmas", "id": "Indian/Christmas" }, { "text": "(GMT+12:00) Moscow+09 - Petropavlovsk-Kamchatskiy", "id": "Asia/Kamchatka" }, { "text": "(GMT+10:00) Guam", "id": "Pacific/Guam" }, { "text": "(GMT-03:00) Campo Grande", "id": "America/Campo_Grande" }, { "text": "(GMT+02:00) Vilnius", "id": "Europe/Vilnius" }, { "text": "(GMT+06:00) Vostok", "id": "Antarctica/Vostok" }, { "text": "(GMT+01:00) Paris", "id": "Europe/Paris" }, { "text": "(GMT+01:00) Warsaw", "id": "Europe/Warsaw" }, { "text": "(GMT+05:00) Moscow+02 - Yekaterinburg", "id": "Asia/Yekaterinburg" }, { "text": "(GMT-05:00) America Cancun", "id": "America/Cancun" }, { "text": "(GMT-05:00) Havana", "id": "America/Havana" }, { "text": "(GMT+01:00) Ceuta", "id": "Africa/Ceuta" }, { "text": "(GMT+08:00) China Time - Beijing", "id": "Asia/Shanghai" }, { "text": "(GMT-10:00) Rarotonga", "id": "Pacific/Rarotonga" }, { "text": "(GMT+01:00) Copenhagen", "id": "Europe/Copenhagen" }, { "text": "(GMT+05:00) Aqtau", "id": "Asia/Aqtau" }, { "text": "(GMT-04:00) Grand Turk", "id": "America/Grand_Turk" }, { "text": "(GMT-03:00) Araguaina", "id": "America/Araguaina" }, { "text": "(GMT+05:30) India Standard Time", "id": "Asia/Calcutta" }, { "text": "(GMT-11:00) Niue", "id": "Pacific/Niue" }, { "text": "(GMT-11:00) Pago Pago", "id": "Pacific/Pago_Pago" }, { "text": "(GMT-08:00) Pacific Time - Tijuana", "id": "America/Tijuana" }, { "text": "(GMT-03:00) Santiago", "id": "America/Santiago" }, { "text": "(GMT+02:00) Johannesburg", "id": "Africa/Johannesburg" }, { "text": "(GMT+09:00) Tokyo", "id": "Asia/Tokyo" }, { "text": "(GMT+10:00) Dumont D'Urville", "id": "Antarctica/DumontDUrville" }, { "text": "(GMT-04:00) Port of Spain", "id": "America/Port_of_Spain" }, { "text": "(GMT-04:00) Santo Domingo", "id": "America/Santo_Domingo" }, { "text": "(GMT-03:00) Recife", "id": "America/Recife" }, { "text": "(GMT-03:30) Newfoundland Time - St. Johns", "id": "America/St_Johns" }, { "text": "(GMT+04:30) Kabul", "id": "Asia/Kabul" }, { "text": "(GMT+11:00) Eastern Time - Melbourne, Sydney", "id": "Australia/Sydney" }, { "text": "(GMT+03:00) Syowa", "id": "Antarctica/Syowa" }, { "text": "(GMT+13:00) Auckland", "id": "Pacific/Auckland" }, { "text": "(GMT-05:00) Nassau", "id": "America/Nassau" }, { "text": "(GMT-04:00) Bermuda", "id": "Atlantic/Bermuda" }, { "text": "(GMT+02:00) Gaza", "id": "Asia/Gaza" }, { "text": "(GMT-03:00) Paramaribo", "id": "America/Paramaribo" }, { "text": "(GMT+11:00) Kosrae", "id": "Pacific/Kosrae" }, { "text": "(GMT+12:00) Nauru", "id": "Pacific/Nauru" }, { "text": "(GMT+10:00) Moscow+07 - Magadan", "id": "Asia/Magadan" }, { "text": "(GMT-07:00) Mountain Time - Yellowknife", "id": "America/Yellowknife" }, { "text": "(GMT+01:00) Tunis", "id": "Africa/Tunis" }, { "text": "(GMT+02:00) Kiev", "id": "Europe/Kiev" }, { "text": "(GMT-08:00) Pacific Time - Vancouver", "id": "America/Vancouver" }, { "text": "(GMT-03:00) Fortaleza", "id": "America/Fortaleza" }, { "text": "(GMT+00:00) Monrovia", "id": "Africa/Monrovia" }, { "text": "(GMT+08:00) Makassar", "id": "Asia/Makassar" }, { "text": "(GMT+11:00) Eastern Time - Hobart", "id": "Australia/Hobart" }, { "text": "(GMT-05:00) Panama", "id": "America/Panama" }, { "text": "(GMT-03:00) Cuiaba", "id": "America/Cuiaba" }, { "text": "(GMT+12:00) Tarawa", "id": "Pacific/Tarawa" }, { "text": "(GMT+01:00) Central European Time - Belgrade", "id": "Europe/Belgrade" }, { "text": "(GMT+04:00) Tbilisi", "id": "Asia/Tbilisi" }, { "text": "(GMT+06:00) Bishkek", "id": "Asia/Bishkek" }, { "text": "(GMT+06:00) Chagos", "id": "Indian/Chagos" }, { "text": "(GMT+07:00) Hanoi", "id": "Asia/Saigon" }, { "text": "(GMT-06:00) Central Time - Mexico City", "id": "America/Mexico_City" }, { "text": "(GMT-03:00) Stanley", "id": "Atlantic/Stanley" }, { "text": "(GMT+01:00) Ndjamena", "id": "Africa/Ndjamena" }, { "text": "(GMT-07:00) Mountain Time - Chihuahua, Mazatlan", "id": "America/Mazatlan" }, { "text": "(GMT-04:00) Boa Vista", "id": "America/Boa_Vista" }, { "text": "(GMT-03:00) Maceio", "id": "America/Maceio" }, { "text": "(GMT+01:00) Berlin", "id": "Europe/Berlin" }, { "text": "(GMT+01:00) Central European Time - Prague", "id": "Europe/Prague" }, { "text": "(GMT-08:00) Pacific Time - Whitehorse", "id": "America/Whitehorse" }, { "text": "(GMT-06:00) Galapagos", "id": "Pacific/Galapagos" }, { "text": "(GMT+00:00) Dublin", "id": "Europe/Dublin" }, { "text": "(GMT-09:00) Alaska Time", "id": "America/Anchorage" }, { "text": "(GMT-05:00) Port-au-Prince", "id": "America/Port-au-Prince" }, { "text": "(GMT+02:00) Amman", "id": "Asia/Amman" }, { "text": "(GMT-06:00) El Salvador", "id": "America/El_Salvador" }, { "text": "(GMT-05:00) Cayman", "id": "America/Cayman" }, { "text": "(GMT+00:00) Lisbon", "id": "Europe/Lisbon" }, { "text": "(GMT+01:00) Zurich", "id": "Europe/Zurich" }, { "text": "(GMT+03:00) Minsk", "id": "Europe/Minsk" }, { "text": "(GMT+08:00) Kuala Lumpur", "id": "Asia/Kuala_Lumpur" }, { "text": "(GMT+11:00) Efate", "id": "Pacific/Efate" }, { "text": "(GMT-07:00) Mountain Time - Edmonton", "id": "America/Edmonton" }, { "text": "(GMT-06:00) Belize", "id": "America/Belize" }, { "text": "(GMT-04:00) Puerto Rico", "id": "America/Puerto_Rico" }, { "text": "(GMT+01:00) Malta", "id": "Europe/Malta" }, { "text": "(GMT+02:00) Sofia", "id": "Europe/Sofia" }, { "text": "(GMT+08:00) Ulaanbaatar", "id": "Asia/Ulaanbaatar" }, { "text": "(GMT+08:30) Pyongyang", "id": "Asia/Pyongyang" }, { "text": "(GMT+09:00) Dili", "id": "Asia/Dili" }, { "text": "(GMT-09:00) Gambier", "id": "Pacific/Gambier" }, { "text": "(GMT-04:00) Guyana", "id": "America/Guyana" }, { "text": "(GMT+01:00) Madrid", "id": "Europe/Madrid" }, { "text": "(GMT+14:00) Apia", "id": "Pacific/Apia" }, { "text": "(GMT+14:00) Kiritimati", "id": "Pacific/Kiritimati" }, { "text": "(GMT+02:00) Nicosia", "id": "Asia/Nicosia" }, { "text": "(GMT+07:00) Bangkok", "id": "Asia/Bangkok" }, { "text": "(GMT+08:00) Manila", "id": "Asia/Manila" }, { "text": "(GMT-03:00) Cayenne", "id": "America/Cayenne" }, { "text": "(GMT+06:00) Dhaka", "id": "Asia/Dhaka" }, { "text": "(GMT+08:00) Brunei", "id": "Asia/Brunei" }, { "text": "(GMT-05:00) Jamaica", "id": "America/Jamaica" }, { "text": "(GMT+01:00) Brussels", "id": "Europe/Brussels" }, { "text": "(GMT+08:00) Moscow+05 - Irkutsk", "id": "Asia/Irkutsk" }, { "text": "(GMT-03:00) Buenos Aires", "id": "America/Argentina/Buenos_Aires" }, { "text": "(GMT+01:00) Oslo", "id": "Europe/Oslo" }, { "text": "(GMT+08:00) Taipei", "id": "Asia/Taipei" }, { "text": "(GMT-06:00) Costa Rica", "id": "America/Costa_Rica" }, { "text": "(GMT+05:00) Aqtobe", "id": "Asia/Aqtobe" }, { "text": "(GMT+06:30) Cocos", "id": "Indian/Cocos" }, { "text": "(GMT-02:00) Sao Paulo", "id": "America/Sao_Paulo" }, { "text": "(GMT-03:00) Rothera", "id": "Antarctica/Rothera" }, { "text": "(GMT+02:00) Windhoek", "id": "Africa/Windhoek" }, { "text": "(GMT+10:00) Truk", "id": "Pacific/Chuuk" }, { "text": "(GMT+11:00) Guadalcanal", "id": "Pacific/Guadalcanal" }, { "text": "(GMT+13:00) Enderbury", "id": "Pacific/Enderbury" }, { "text": "(GMT-04:00) Curacao", "id": "America/Curacao" }, { "text": "(GMT-02:00) South Georgia", "id": "Atlantic/South_Georgia" }, { "text": "(GMT+08:00) Western Time - Perth", "id": "Australia/Perth" }, { "text": "(GMT-05:00) Guayaquil", "id": "America/Guayaquil" }, { "text": "(GMT-04:00) Atlantic Time - Halifax", "id": "America/Halifax" }, { "text": "(GMT+09:00) Jayapura", "id": "Asia/Jayapura" }, { "text": "(GMT+10:00) Eastern Time - Brisbane", "id": "Australia/Brisbane" }, { "text": "(GMT-04:00) Thule", "id": "America/Thule" }, { "text": "(GMT+04:00) Baku", "id": "Asia/Baku" }, { "text": "(GMT+07:00) Moscow+04 - Krasnoyarsk", "id": "Asia/Krasnoyarsk" }, { "text": "(GMT+01:00) Budapest", "id": "Europe/Budapest" }, { "text": "(GMT-06:00) Central Time - Regina", "id": "America/Regina" }, { "text": "(GMT-04:00) Martinique", "id": "America/Martinique" }, { "text": "(GMT+01:00) Amsterdam", "id": "Europe/Amsterdam" }, { "text": "(GMT+09:00) Palau", "id": "Pacific/Palau" }, { "text": "(GMT-03:00) Godthab", "id": "America/Godthab" }, { "text": "(GMT+01:00) Monaco", "id": "Europe/Monaco" }, { "text": "(GMT+08:00) Hong Kong", "id": "Asia/Hong_Kong" }, { "text": "(GMT+01:00) Tirane", "id": "Europe/Tirane" }, { "text": "(GMT+03:00) Qatar", "id": "Asia/Qatar" }, { "text": "(GMT-08:00) Pitcairn", "id": "Pacific/Pitcairn" }, { "text": "(GMT-07:00) Mountain Time - Arizona", "id": "America/Phoenix" } ]