5
edits
| (3 intermediate revisions by 2 users not shown) | |||
| Line 8: | Line 8: | ||
* outputting / parsing datetime | * outputting / parsing datetime | ||
* date calculations / manipulating | * date calculations / manipulating | ||
* json date extension (see crockford's json module)? | |||
including TZ conversion? naive datetime's - not knowing about TZ - are easier to handle, though it seems JS has native aware datetime objects. utc & localtime. | including TZ conversion? naive datetime's - not knowing about TZ - are easier to handle, though it seems JS has native aware datetime objects. utc & localtime. | ||
| Line 29: | Line 30: | ||
// Is today Friday? | // Is today Friday? | ||
Date.today().is().friday(); // true|false | Date.today().is().friday(); // true|false | ||
* [http://api.dojotoolkit.org/jsdoc/1.3/dojo.date dojo.date] and [http://api.dojotoolkit.org/jsdoc/1.3/dojo.date.locale dojo.date.locale] (dojo.date.stamp is obsoleted by ES5) | |||
** dojo.date provides convenience methods | |||
** dojo.date.locale provides format and parse functions which are data driven off the [http://unicode.org/cldr Unicode CLDR project], fully localized client-side, downloading localizations only as needed. Support for hundreds of languages/variants. | |||
>>> dojo.date.locale.format(myDate, {selector: “date”, formatLength: “long”}) // en-us | |||
“June 28, 2008″ | |||
>>> dojo.date.locale.format(myDate, {selector: “date”, formatLength: “long”}) // zh-cn | |||
“2008年6月28日” | |||
** [http://api.dojotoolkit.org/jsdoc/1.3/dojox.date dojox.date] has experimental support for non-Gregorian calendars as well as Unix- and PHP-style formatting. | |||
* Matthew Eernisse implemented a [http://js.fleegix.org/plugins/date/date Date-like class] in JS to deal with the Olson table client-side, as well as code to parse and preprocess the Olson table. | |||
* ... | * ... | ||
edits