Loading ...
Sorry, an error occurred while loading the content.

1293Re: [json] Re: Full ISO 8601 Date Parser Plus Unobtrusive toISOString

Expand Messages
  • Arthur Blake
    Jul 9, 2009
    • 0 Attachment
      Shouldn'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 <
      andrea.giammarchi@...> wrote:

      >
      >
      > 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
      > fully
      > useful; like json2.js, its value is in allowing us to write script now
      > using
      > the correct future syntax of ECMAScript 5.
      >
      > Incidentally, your toISOString function doesn't have handling for the NaN
      > case.
      >
      > --- In json@yahoogroups.com <json%40yahoogroups.com>, Andrea Giammarchi
      > <andrea.giammarchi@...>
      > wrote: > > Maybe this stuff...
      > > [Non-text portions of this message have been removed]
      > >
      >
      > [Non-text portions of this message have been removed]
      >
      >
      >


      [Non-text portions of this message have been removed]
    • Show all 5 messages in this topic