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

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

Expand Messages
  • Andrea Giammarchi
    Jul 5, 2009
      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@...> 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, 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]
    • Show all 5 messages in this topic