RE: Date.prototype.toISOString and Invalid Date

2009-06-11 Thread Allen Wirfs-Brock
>-Original Message- >From: es-discuss-boun...@mozilla.org [mailto:es-discuss- >boun...@mozilla.org] On Behalf Of Garrett Smith >Sent: Thursday, June 11, 2009 1:25 AM > >It seems that an "es5-discuss" list was created. I'm only subscribing >to es-discuss. It that a deprecated list? What is t

Re: Date.prototype.toISOString and Invalid Date

2009-06-11 Thread Garrett Smith
On Wed, Jun 10, 2009 at 8:56 PM, Adam Peller wrote: > Douglas Crockford writes: >>Adam Peller scripsit: >> >>> I don't feel strongly on this, but it does strike me as odd that >>> a function intended to avoid culturally-sensitive output would use >>> an English phrase.  I'd lean towards IE/Opera, u

Re: Date.prototype.toISOString and Invalid Date

2009-06-10 Thread Adam Peller
Douglas Crockford writes: >Adam Peller scripsit: > >> I don't feel strongly on this, but it does strike me as odd that >> a function intended to avoid culturally-sensitive output would use >> an English phrase.  I'd lean towards IE/Opera, using notation from >> ECMAScript that is equally cryptic t

Re: Date.prototype.toISOString and Invalid Date

2009-06-10 Thread Douglas Crockford
Adam Peller scripsit: > I don't feel strongly on this, but it does strike me as odd that > a function intended to avoid culturally-sensitive output would use > an English phrase.  I'd lean towards IE/Opera, using notation from > ECMAScript that is equally cryptic to all cultures :-)  At least that

Re: Date.prototype.toISOString and Invalid Date

2009-06-10 Thread Garrett Smith
On Wed, Jun 10, 2009 at 8:48 AM, Allen Wirfs-Brock wrote: > I believe that support for ISO dates in ES5 is intended to provide a standard > interchange format for dates, not for providing a locale customized format > for human consumption. While I agree that throwing makes sense, it is not for t

RE: Date.prototype.toISOString and Invalid Date

2009-06-10 Thread Allen Wirfs-Brock
@mozilla.org Subject: Re: Date.prototype.toISOString and Invalid Date On Wed, Jun 10, 2009 at 11:00 AM, Allen Wirfs-Brock mailto:allen.wirfs-br...@microsoft.com>> wrote: This would also imply that (new Date(NaN).toJSON()) also throws. Is everybody fine with that?? I must be missing somethin

Re: Date.prototype.toISOString and Invalid Date

2009-06-10 Thread Brendan Eich
the same string as Date.prototype.toISOString()." Works for me. /be Allen -Original Message- From: Brendan Eich [mailto:bren...@mozilla.com] Sent: Wednesday, June 10, 2009 9:42 AM To: Allen Wirfs-Brock Cc: John Cowan; Adam Peller; es-discuss@mozilla.org; es5- disc...@mozilla.org Subject: Re: Date.

Re: Date.prototype.toISOString and Invalid Date

2009-06-10 Thread Mark S. Miller
On Wed, Jun 10, 2009 at 11:00 AM, Allen Wirfs-Brock < allen.wirfs-br...@microsoft.com> wrote: > This would also imply that (new Date(NaN).toJSON()) also throws. Is > everybody fine with that?? > I must be missing something. How does that follow? -- Cheers, --MarkM _

RE: Date.prototype.toISOString and Invalid Date

2009-06-10 Thread Allen Wirfs-Brock
uss@mozilla.org; es5- >disc...@mozilla.org >Subject: Re: Date.prototype.toISOString and Invalid Date > >On Jun 10, 2009, at 8:48 AM, Allen Wirfs-Brock wrote: > >> I believe that support for ISO dates in ES5 is intended to provide a >> standard interchange format for dates

Re: Date.prototype.toISOString and Invalid Date

2009-06-10 Thread Brendan Eich
On Jun 10, 2009, at 8:48 AM, Allen Wirfs-Brock wrote: I believe that support for ISO dates in ES5 is intended to provide a standard interchange format for dates, not for providing a locale customized format for human consumption. Since ISO 8601 apparently doesn't provide an encoding for "i

RE: Date.prototype.toISOString and Invalid Date

2009-06-10 Thread Allen Wirfs-Brock
Sent: Wednesday, June 10, 2009 8:21 AM >To: Adam Peller >Cc: Allen Wirfs-Brock; es5-disc...@mozilla.org; Garrett Smith; es- >disc...@mozilla.org >Subject: Re: Date.prototype.toISOString and Invalid Date > >Adam Peller scripsit: > >> I don't feel strongly on this, but

Re: Date.prototype.toISOString and Invalid Date

2009-06-10 Thread Adam Peller
Subject Re: Date.prototype.toISOString and

RE: Date.prototype.toISOString and Invalid Date

2009-06-10 Thread Adam Peller
Subject RE: Date.prototype.toISOString and

Re: Date.prototype.toISOString and Invalid Date

2009-06-10 Thread Christian Plesner Hansen
-centric perspective). > > Unless, I here strong opinions otherwise I think I'll go with "Invalid Date". > > Allen > >>-Original Message- >>From: es-discuss-boun...@mozilla.org [mailto:es-discuss- >>boun...@mozilla.org] On Behalf Of Garrett

RE: Date.prototype.toISOString and Invalid Date

2009-06-09 Thread Allen Wirfs-Brock
tive). Unless, I here strong opinions otherwise I think I'll go with "Invalid Date". Allen >-Original Message- >From: es-discuss-boun...@mozilla.org [mailto:es-discuss- >boun...@mozilla.org] On Behalf Of Garrett Smith >Sent: Saturday, June 06, 2009 12:40 AM >

Date.prototype.toISOString and Invalid Date

2009-06-06 Thread Garrett Smith
What is the expected result of calling toISOString on a date where the year is NaN? var d = new Date(NaN); d.toISOString(); ? Garrett ___ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss