1293Re: [json] Re: Full ISO 8601 Date Parser Plus Unobtrusive toISOString
- Jul 9, 2009Shouldn't new Date(NaN) refer to a future date that is always just around
the corner, yet never arrives?
sorry... couldn't resist :)
On Mon, Jul 6, 2009 at 2:51 AM, Andrea Giammarchi <
>[Non-text portions of this message have been removed]
> The NaN case should be a constructor problem, no? To extend
> Date.prototype.toISOString = Date.ISO("2000").toISOString;
> On Jul 6, 2009 1:41 AM, "joel.finch@... <joel.finch%40ymail.com>" <
> joel@... <joel%402am.com.au>> wrote:
> Personally, I think this would have to extend the Date prototype to be
> useful; like json2.js, its value is in allowing us to write script now
> the correct future syntax of ECMAScript 5.
> Incidentally, your toISOString function doesn't have handling for the NaN
> --- In email@example.com <json%40yahoogroups.com>, Andrea Giammarchi
> wrote: > > Maybe this stuff...
> > [Non-text portions of this message have been removed]
> [Non-text portions of this message have been removed]
- << Previous post in topic Next post in topic >>