wrynn
asked on
displaying a list of time zones using java
how can i get a list of all of the timezones using java?
i want to use them for a dropdown and im also wondering how many timezones i should present to the user without overwhelming them. Would only displaying 25 be enough? What about determining their timezone based on their current city?
this is the 25 i was going to display:
var timezone = new Object();
timezone.Kwajalein="(GMT-1 2:00) Kwajalein";
timezone.Midway="(GMT-11:0 0) Midway Island, Samoa";
timezone.Hawaii="(GMT-10:0 0) Hawaii";
timezone.Alaska="(GMT-09:0 0) Alaska";
timezone.Pacific="(GMT-08: 00) Pacific Time (USA & Canada)";
timezone.Arizona="(GMT-07: 00) Arizona";
timezone.Mountain="(GMT-07 :00) Mountain Time (USA & Canada)";
timezone.Mexico="(GMT-06:0 0) Mexico";
timezone.Central="(GMT-06: 00) Central Time (USA & Canada)";
timezone.Indiana="(GMT-05: 00) Indiana East, Colombia, Panama";
timezone.Eastern="(GMT-05: 00) Eastern Time (USA & Canada)";
timezone.Bolivia="(GMT-04: 00) Bolivia, Venezuela";
timezone.Atlantic="(GMT-04 :00) Atlantic Time (Canada), Brazil West";
timezone.Newfoundland="(GM T-03:30) Newfoundland";
timezone.Guyana="(GMT-03:0 0) Guyana";
timezone.Brazil="(GMT-03:0 0) Brazil East, Greenland";
timezone.Mid="(GMT-02:00) Mid-Atlantic";
timezone.Azores="(GMT-01:0 0) Azores";
timezone.Gambia="(GMT) Gambia, Liberia, Morocco";
timezone.England="(GMT) England";
timezone.Tunisia="(GMT+01: 00) Tunisia";
timezone.France="(GMT+01:0 0) France, Germany, Italy";
timezone.South="(GMT+02:00 ) South Africa";
timezone.Greece="(GMT+02:0 0) Greece, Ukraine, Romania, Turkey";
timezone.Iraq="(GMT+03:00) Iraq, Jordan, Kuwait";
timezone.Armenia="(GMT+04: 00) Armenia";
timezone.Pakistan="(GMT+05 :00) Pakistan, Russia";
timezone.india="(GMT+05:30 ) Bombay, Kalkutta, Madras, Neu Delhi";
timezone.Bangladesh="(GMT+ 06:00) Bangladesh, Russia";
timezone.Thailand="(GMT+07 :00) Thailand, Russia";
timezone.China="(GMT+08:00 ) China, Hong Kong, Australia Western";
timezone.Singapore="(GMT+0 8:00) Singapore, Taiwan, Russia";
timezone.Japan="(GMT+09:00 ) Japan, Korea";
timezone.Guam="(GMT+10:00) Guam, Russia";
timezone.Australia="(GMT+1 0:00) Australia";
timezone.Solomon="(GMT+11: 00) Solomon Islands";
timezone.Fiji="(GMT+12:00) Fiji";
timezone.New_Zealand="(GMT +12:00) New Zealand";
i want to use them for a dropdown and im also wondering how many timezones i should present to the user without overwhelming them. Would only displaying 25 be enough? What about determining their timezone based on their current city?
this is the 25 i was going to display:
var timezone = new Object();
timezone.Kwajalein="(GMT-1
timezone.Midway="(GMT-11:0
timezone.Hawaii="(GMT-10:0
timezone.Alaska="(GMT-09:0
timezone.Pacific="(GMT-08:
timezone.Arizona="(GMT-07:
timezone.Mountain="(GMT-07
timezone.Mexico="(GMT-06:0
timezone.Central="(GMT-06:
timezone.Indiana="(GMT-05:
timezone.Eastern="(GMT-05:
timezone.Bolivia="(GMT-04:
timezone.Atlantic="(GMT-04
timezone.Newfoundland="(GM
timezone.Guyana="(GMT-03:0
timezone.Brazil="(GMT-03:0
timezone.Mid="(GMT-02:00) Mid-Atlantic";
timezone.Azores="(GMT-01:0
timezone.Gambia="(GMT) Gambia, Liberia, Morocco";
timezone.England="(GMT) England";
timezone.Tunisia="(GMT+01:
timezone.France="(GMT+01:0
timezone.South="(GMT+02:00
timezone.Greece="(GMT+02:0
timezone.Iraq="(GMT+03:00)
timezone.Armenia="(GMT+04:
timezone.Pakistan="(GMT+05
timezone.india="(GMT+05:30
timezone.Bangladesh="(GMT+
timezone.Thailand="(GMT+07
timezone.China="(GMT+08:00
timezone.Singapore="(GMT+0
timezone.Japan="(GMT+09:00
timezone.Guam="(GMT+10:00)
timezone.Australia="(GMT+1
timezone.Solomon="(GMT+11:
timezone.Fiji="(GMT+12:00)
timezone.New_Zealand="(GMT
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window