/    Sign up×
Community /Pin to ProfileBookmark

Time Zone array

Does anyone know of a webpage where all the time zones are already set up in an array so I can just pass like -5 and show out the words instead of -5?

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@nathanpcMay 24.2010 — Google?
Copy linkTweet thisAlerts:
@amsterdamharuMay 24.2010 — on this page:

user CP => edit your details => edit options => under time zone there is a dropdown with values and descriptions.
Copy linkTweet thisAlerts:
@nathanpcMay 24.2010 — on this page:

user CP => edit your details => edit options => under time zone there is a dropdown with values and descriptions.[/quote]

Good place too mate. ?
Copy linkTweet thisAlerts:
@tvb2727authorMay 26.2010 — Thanks, that helped.

I wish there was a function or process to find the the exact time zone set on the computer. Since there are like 5 different selections for GMT -3.

Thanks again.
Copy linkTweet thisAlerts:
@jalarieSep 01.2010 — on this page:

user CP => edit your details => edit options => under time zone there is a dropdown with values and descriptions.[/QUOTE]


That list is incomplete and contains a couple of errors. The Yukon Canadian province was doing so much business with California that they did not like to be an hour off, so they sitched. Eastern Alaska did not like to have a two-hour difference with the Yukon just across the street, so they switched. There are a number of fractional-hour zones not on the above list.

Will this help you?

<i>
</i>// timezone.js
// Written: 2010-01-01 by James Alarie
//
// Fields delimited by equals(=) signs:
// 1 timezone offset from GMT in normal time format.
// 2 timezone offset in minutes.
// 3 some locations in this timezone.
// 4 optional comments.

TimeZones=new Array( // UTC offset '=' locations
'-12:00=-720=Eniwelok, Kwajalein',
'-11:00=-660=Midway Island, Samoa',
'-10:30=-630=Cook Islands',
'-10:00=-600=Hawaii; Western Aleutian Islands=was Alaska/Hawaii timezone',
'-09:30=-570=Marquesas Islands',
'-09:00=-540=Alaska; Eastern Aleutian Islands=was Yukon timezone',
'-08:30=-510=Pitcairn Island',
'-08:00=-480=Pacific Time (US &amp; Canada); Yukon; Tijuana',
'-07:00=-420=Mountain Time (US &amp; Canada)',
'-06:00=-360=Central Time (US &amp; Canada); Mexico City, Tegucigalpa',
'-05:00=-300=Eastern Time (US &amp; Canada); Bogota; Lima; Quito',
'-04:30=-270=Caracas',
'-04:00=-240=Atlantic Time (Canada); Caracas, La Paz; Santiago',
'-03:45=-225=Guyana, South America',
'-03:30=-210=Newfoundland; Suriname, South America',
'-03:00=-180=Greenland; Brasilia; Buernos Aires; Puerto Rico',
'-02:00=-120=Mid-Atlantic',
'-01:00=-60=Azores, Cape Verde Is.',
'00:00=0=Greenwich Mean Time',
'01:00=60=Amsterdam; Berlin; Bern; Rome; Stockholm; Vienna',
'02:00=120=Athens; Istanbul; Minsk; Jerusalem',
'03:00=180=Baghdad; Kuwait; Moscow',
'03:30=210=Tehran, Iran',
'04:00=240=Abu Dhabi; Muscat',
'04:30=270=Kabul, Afghanistan',
'05:00=300=Ekaterinburg',
'05:30=330=India; Bombay; Calcutta; New Delhi; Sri Lanka',
'05:45=345=Kathmandu, Nepal',
'06:00=360=Astana; Dhaka',
'06:30=390=Cocos Islands; Yangon; Myanmar',
'07:00=420=Bangkok; Hanoi',
'08:00=480=Perth; Singapore; China',
'08:45=525=South Australia',
'09:00=540=Osaka; Tokyo; Seoul',
'09:30=570=Northern Australia',
'10:00=600=Brisbane; Canberra; Sydney; Guam',
'11:00=660=Magadan; Solomon Is.; New Caledonia',
'11:30=690=New Zealand?; Norfold Island, Australia',
'12:00=720=Auckland; Wellington; Fiji; Marshall Is.; Tuvalu',
'12:45=765=Chatham Island, New Zealand',
'13:00=780=Nukulalofa; Phoenix Islands=1 hour EAST of the dateline',
'14:00=840=Line Islands; Christmas Islands=2 hours EAST of the dateline',
'');

// US Military Time Zones
// +01=A, +02=B, +03=C, +04=D, +05=E, +06=F,
// +07=G, +08=H, +09=I, +10=K, +11=L, +12=M,
// -01=N, -02=O, -03=P, -04=Q, -05=R, -06=S,
// -07=T, -08=U, -09=V, -10=W, -11=X, -12=Y,
// 00=Z (Zulu/GMT/UTC), your current time zone=J
×

Success!

Help @tvb2727 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...