3 ms·
JavaScript and Swift apparently disagree about when January 1, 1 AD was
- samwillis 5y agoTwitter registration wall bypass: https://nitter.net/bjhomer/status/1499821210191872000 https://nitter.net/bjhomer/status/1499821210191872000 Unrolled: https://threadreaderapp.com/thread/1499821210191872000.html https://threadreaderapp.com/thread/1499821210191872000.html
- karmakaze 5y ago> As per ISO 8601 standard (which requires dates to be consecutive), JS is using the proleptic Gregorian calendar (which does _not_ have 10 missing days; October 4th 1582 in the Julian calendar is October 14th 1582 in the proleptic Gregorian calendar). Swift is wrong here. I think ISO 8601 is wrong here. The dates in the calendar are themselves not consecutive and forcing them to be creates historically inaccurate dates.