Closed
Bug 586268
Opened 15 years ago
Closed 7 years ago
Date.parse() should accept partial date strings
Categories
(Rhino Graveyard :: Core, defect)
Tracking
(Not tracked)
RESOLVED
INACTIVE
People
(Reporter: hannesw, Unassigned)
Details
Attachments
(1 file)
|
45.27 KB,
text/x-java
|
Details |
ECMAScript 5 section 15.9.1.15 describes valid date formats and explicitly includes partial dates, times, and date-time combinations:
YYYY
YYYY-MM
YYYY-MM-DD
THH:mm
THH:mm:ss
THH:mm:ss.sss
Also, the timezone can be specified in numeric +|-hh:mm format in addition to "Z" for UTC.
Rhino's Date.parse() method currently fails to parse partial dates and numeric timezones.
Comment 1•14 years ago
|
||
[1] contains a more spec-compliant parser for date values in ISO-8601 Extended Format, in particular, see the "parseISOString()" method.
[1] https://github.com/anba/rhino/commit/2f947b93ce84c00a63806adf5600751e9bb7b954#diff-23
Comment 2•11 years ago
|
||
Improved support for ISO 8006 extended date-time format.
Comment 3•7 years ago
|
||
Closing. Bug management is now done here:
https://github.com/mozilla/rhino
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•