Skip to main content
7 events
when toggle format what by license comment
Jun 10, 2020 at 13:24 history edited CommunityBot
Commonmark migration
Jul 26, 2019 at 13:17 comment added user11536834 One other idea for the first solution could be to whack everything into Date.UTC, with 1970, 0, 1 as the first arguments, then multiply by 0.001; then you could scrap periods and do it all in one shot (a bit funky, but makes it really clear we're dealing with a timestamp).
Jul 26, 2019 at 13:09 comment added user11536834 Very nice. Might be worth mentioning that matchAll and named captures don't have full browser support yet, but this is surely the way forward (old regex functions all have some unfortunate deficiencies, aside from replace, which is awkward to use when not actually replacing something).
Jul 26, 2019 at 9:24 history edited Blindman67 CC BY-SA 4.0
added 447 characters in body
Jul 26, 2019 at 9:22 comment added Blindman67 @Nzall Modern JS is progressing to less a less verbose style that to many is less readable. I will update with a more readable version.
Jul 26, 2019 at 9:08 comment added Nzall This code might be more robust, but it's also A LOT harder to read IMHO.
Jul 26, 2019 at 6:01 history answered Blindman67 CC BY-SA 4.0