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

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

Expand Messages
  • Andrea Giammarchi
    Jul 9, 2009
      Uhm, I think new Date(NaN) should return a static historical date, new
      Date(Number.POSITIVE_INFINITY) 9999-12-31T23:59:59:999 and
      Number.NEGATIVE_INFINITY 0001-01-01T00:00:00.001 :D

      Jokes a part, if interested, I have implemented a full(?) ECMAScript Date
      constructor in vice-versa, but since vice-versa is based on stand-alone
      modules/files, here I am with the code:


      toISOString is a prototype, and new Date accept ISO 8601 strings.


      On Thu, Jul 9, 2009 at 8:14 PM, Arthur Blake <arthur.blake@...> wrote:

      > Shouldn't new Date(NaN) refer to a future date that is always just around
      > the corner, yet never arrives?
      > sorry... couldn't resist :)

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