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

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

Expand Messages
  • Andrea Giammarchi
    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
    Message 1 of 5 , Jul 9, 2009
    • 0 Attachment
      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:

      http://vice-versa.googlecode.com/svn/trunk/src/Date.js

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

      Regards

      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]
    Your message has been successfully submitted and would be delivered to recipients shortly.