#3007 closed task (fixed)
dojo.date.stamp refactor
Reported by: | Adam Peller | Owned by: | Adam Peller |
---|---|---|---|
Priority: | high | Milestone: | 0.9beta |
Component: | Date | Version: | 0.4.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
implement to/fromIsoString() methods
add references to spec on the 'net (likely some subset of 8601) AND provide a link. Maybe:
and
move other code out to dojox or remove entirely
create the RegExp? objects as constants in the class, or at least do it only once. If someone is using Iso8601 dates a lot, they're going to pay to recompile that regex every time, which seems silly. One pattern might be:
dojo.date.serial.setIso8601Date = function(/*String*/dateObject, /*String*/formattedString){
var regexp = (this._setIso8601DateRE (this._setIso8601DateRE = (...create the regex...)));
Change History (8)
comment:1 Changed 15 years ago by
Description: | modified (diff) |
---|---|
Status: | new → assigned |
comment:2 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 Changed 15 years ago by
comment:7 Changed 12 years ago by
comment:8 Changed 12 years ago by
Description: | modified (diff) |
---|
In r22228, IE returns the empty string for failed matches in a regexp. I was only testing for undefined (used by FF and others)
Note: See
TracTickets for help on using
tickets.
(In [8881]) Replace Rfc3339/Iso8601 methods with to/fromISOString methods to resemble ECMAScript 4 spec. Fixes #3007