Hasty Briefsbeta

Bilingual

Dates That Don't Exist (2015)

3 days ago
  • The Gregorian calendar, established in 1582 under papal bull inter gravissimas, reduced the year length from 365.25 to 365.2425 days and introduced the modern leap year system.
  • To correct a 10-day drift between the Julian and Gregorian calendars, the dates October 5-14, 1582 were removed, effectively erasing those days from history.
  • Ruby's DateTime correctly rejects impossible Gregorian dates like October 5, 1582, while Python's datetime and Perl's DateTime module allow them without error.
  • The ncal command with a country code ('-s' flag) handles calendar adjustments differently per nation but still misses some historical shifts, like Sweden's in the 1700s.

Related

Loading…