You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any negative unix value is failed to be correctly parsed
>varparseUnix=d3.timeParse("%Q")>parseUnix(978325200000).toString()"Mon Jan 01 2001 00:00:00 GMT-0500 (Eastern Standard Time)">parseUnix(0).toString()"Wed Dec 31 1969 19:00:00 GMT-0500 (Eastern Standard Time)">parseUnix(-1)null
Note that formatting dates prior to epoch, returns negative values
As you may have noticed that the native JS Date constructor is able to parse negative Unix time, so not a huge problem for basic tasks, but support for parsing negative values may be needed in more complex tasks.
The text was updated successfully, but these errors were encountered:
Yep, this parser uses the generic numberRe, which doesn’t allow a leading negative sign (since that doesn’t match sense for most other fields). We should consider adding it.
Any negative unix value is failed to be correctly parsed
Note that formatting dates prior to epoch, returns negative values
As you may have noticed that the native JS Date constructor is able to parse negative Unix time, so not a huge problem for basic tasks, but support for parsing negative values may be needed in more complex tasks.
The text was updated successfully, but these errors were encountered: