New Message: RFC: date.timeZoneToString
webmaster at userland.com
webmaster at userland.com
Tue Oct 30 09:57:42 PST 2001
A new message was posted:
Address: http://frontier.userland.com/discuss/msgReader$9049
By: Dave Winer (dave at userland.com)
OK, it's time to write a verb that returns an English string for a timezone.
It's fairly easy to write, and for the US and some parts of Europe, I actually know what to return.
But here's a vexing question -- what to call the timezones where the does not appear to be a canonical name for the timezone.
So I thought I'd ask for suggestions publicly, since we're a fairly international group, I thought people might be able to help.
***Docs
Here's the provisional DocServer page for the verb.
xxx
***Code
Here's the crucial bit of code.
adrtable^.["-12"] = "Date Line"
adrtable^.["-11"] = "Samoa"
adrtable^.["-10"] = "Hawaii"
adrtable^.["-9"] = "Alaska"
adrtable^.["-8"] = "Pacific"
adrtable^.["-7"] = "Mountain"
adrtable^.["-6"] = "Central"
adrtable^.["-5"] = "Eastern"
adrtable^.["-4"] = "Atlantic"
adrtable^.["-3.5"] = "Newfoundland"
adrtable^.["-3"] = "Brasilia, Buenos Aires"
adrtable^.["-2"] = "Mid-Atlantic"
adrtable^.["-1"] = "Azores"
adrtable^.["0"] = "Greenwich"
adrtable^.["1"] = "Central Europe"
adrtable^.["2"] = "Finland, Israel, South Africa"
adrtable^.["3"] = "Russia-Saudi Arabia"
adrtable^.["3.5"] = "Iran"
adrtable^.["4"] = "Arabian Peninsula"
adrtable^.["5"] = "West Asia"
adrtable^.["5.5"] = "India"
adrtable^.["6"] = "Central Asia"
adrtable^.["7"] = "Bangkok-Hanoi-Jakarta"
adrtable^.["8"] = "China-Western Australia"
adrtable^.["9"] = "Korea, Japan"
adrtable^.["9.5"] = "Central Australia"
adrtable^.["10"] = "Eastern Australia"
adrtable^.["11"] = "Central Pacific"
adrtable^.["12"] = "Fiji-New Zealand"
***Question
Do you know the name for any of the Asian and European time zones?
Dave
PS: Reminder to self: I've yet to account for Daylight Savings Time.
This is a Manila site.. http://manila.userland.com/.
More information about the Frontier-Server
mailing list