D
Dr John Stockton
Javascript date strings can have a one-letter postfix; it is taken as
indicating time zone (not J, which causes NaN).
// IIRC, VB accepts A & P in that location, for AM & PM.
In my MS IE 4, the object generated by new Date("2001/1/1 0:0:0R")
has value meaning Sun Dec 31 19:00:00 UTC 2000.
That combination of local time and UTC corresponds, AIUI, to Tashkent
and Karachi, in Asia (and not to any US towns of the same name).
RFC 0822 authorises that notation in news/mail headers, apparently with
that sense.
However, AIUI, the US military use letter postfixes for time zones, in
the inverse sense - R Romeo being Winter Time on the US East Coast (and
I think J being Local Time).
RFC 2822 says 0822 got it wrong, and therefore disallows the notation in
headers.
ECMA 262 seems not to define the contents of date strings.
What do other browsers show for new Date("2001/1/1 0:0:0R") ?
<URL:http://www.merlyn.demon.co.uk/misctime.htm#Zones>,
<URL:http://www.merlyn.demon.co.uk/js-date0.htm#TP>.
indicating time zone (not J, which causes NaN).
// IIRC, VB accepts A & P in that location, for AM & PM.
In my MS IE 4, the object generated by new Date("2001/1/1 0:0:0R")
has value meaning Sun Dec 31 19:00:00 UTC 2000.
That combination of local time and UTC corresponds, AIUI, to Tashkent
and Karachi, in Asia (and not to any US towns of the same name).
RFC 0822 authorises that notation in news/mail headers, apparently with
that sense.
However, AIUI, the US military use letter postfixes for time zones, in
the inverse sense - R Romeo being Winter Time on the US East Coast (and
I think J being Local Time).
RFC 2822 says 0822 got it wrong, and therefore disallows the notation in
headers.
ECMA 262 seems not to define the contents of date strings.
What do other browsers show for new Date("2001/1/1 0:0:0R") ?
<URL:http://www.merlyn.demon.co.uk/misctime.htm#Zones>,
<URL:http://www.merlyn.demon.co.uk/js-date0.htm#TP>.