3 ms·
oh, oh. I know what. I don't know much about the context, but I remember that datetime parsing code in Firefox was one of the messiest parsers around: https:/
by majke 3y ago
oh, oh. I know what.
I don't know much about the context, but I remember that datetime parsing code in Firefox was one of the messiest parsers around:
https://searchfox.org/mozilla-central/source/nsprpub/pr/src/misc/prtime.c#944 https://searchfox.org/mozilla-central/source/nsprpub/pr/src/...
(I guess that means that at least in the context of browsers, it's far from standardized)
- lifthrasiir 3y agoFor the context, ECMAScript allows for any implementation-defined format besides from the mandatory ISO 8601 style format [1]. Browsers are noticably different here [2]; the equivalent `v8::internal::DateParser` class is no better. [1] https://262.ecma-international.org/#sec-date.parse https://262.ecma-international.org/#sec-date.parse [2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse#non-standard_date_strings https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...