News for hackers. Stuff that matters.
Re:Why are 2025/05/28 and 2025-05-28 different days in JavaS... by jcul on Wednesday May 28, 2025 @04:15AM (#44113774)
There's this handy venn diagram that I've seen floating around for a long time.

Just found a random link to it with an image search:

https://gyazo.com/d8517f72e24c38f055e17182842b991c/max_size/...

ISO 8601 does have some strange formats...

Re:Why are 2025/05/28 and 2025-05-28 different days in JavaS... by badmintonbaseba on Wednesday May 28, 2025 @04:20AM (#44113810)
That's a screenshot of this website:

https://ijmacd.github.io/rfc3339-iso8601/

Re:Why are 2025/05/28 and 2025-05-28 different days in JavaS... by jcul on Wednesday June 04, 2025 @06:45PM (#44186356)
Thanks! That's where I remember it from.
Re:Why are 2025/05/28 and 2025-05-28 different days in JavaS... by skissane on Wednesday May 28, 2025 @05:00AM (#44114052)
> ISO 8601 does have some strange formats...

Not that I’ve ever really had cause to use it in anger, but I like the idea of ISO week dates.

Effectively, the ISO weak year (often differs from the calendar year in the last week of December / first week of January), ISO week number and day of week form a leap week calendar - instead of having 365 days in a common year and 366 in a leap year, it has 364 days in a common year and 371 in a leap week year, with leap weeks (obviously) being less frequent than leap days.

The Sym454 calendar [0] takes this idea further to create a perpetual calendar, with 12 months of 4 or 5 weeks; in leap years the 12th month is 5 weeks instead of 4 weeks long. However, the leap week rule proposed by Sym454 is different from that proposed by ISO 8601; the author of Sym454 argues his proposed rule has theoretical advantages (simple calculation and more uniform distribution of leap weeks). That said, there is a variant of Sym454 which uses the ISO 8601 leap week rule.

[0] https://kalendis.free.nf/symmetry.htm?i=1