Search the web
Sign In
New User? Sign Up
json · JSON JavaScript Object Notation
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Full ISO 8601 Date Parser Plus Unobtrusive toISOString   Message List  
Reply | Forward Message #1290 of 1408 |
Re: Full ISO 8601 Date Parser Plus Unobtrusive toISOString

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 could be interesting for json2.js file as well, or maybe
> not.
> It is a quick and full specs ISO strings parser, really fast, widely
> compatible, unobtrusive, since Date.prototype is not touched (it could be
> touched if everybody agrees about it)
>
http://webreflection.blogspot.com/2009/07/ecmascript-iso-date-for-every-browser.\
html

>
> Regards
>
>
> [Non-text portions of this message have been removed]
>





Mon Jul 6, 2009 12:28 am

joel.finch...
Offline Offline
Send Email Send Email

Forward
Message #1290 of 1408 |
Expand Messages Author Sort by Date

Maybe this stuff could be interesting for json2.js file as well, or maybe not. It is a quick and full specs ISO strings parser, really fast, widely compatible,...
Andrea Giammarchi
an_red...
Offline Send Email
Jul 4, 2009
11:18 am

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...
joel.finch@...
joel.finch...
Offline Send Email
Jul 6, 2009
12:29 am

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,...
Andrea Giammarchi
an_red...
Offline Send Email
Jul 6, 2009
6:51 am

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...
Arthur Blake
blakesys
Offline Send Email
Jul 9, 2009
7:15 pm

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...
Andrea Giammarchi
an_red...
Offline Send Email
Jul 9, 2009
7:26 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help