TLDR Web Dev · ARTICLES & TUTORIALS

HAPPY LEAP DAY!

blog.pragmaticengineer.com6 min read

Summary from the TLDR Web Dev newsletter

Software systems that don't properly account for Leap Days have a tendency to glitch or fail on February 29th. This year is no exception, with reports of failures in supermarket payment systems, airline ticketing, gas station payment terminals, smartwatches, and even a major video game. To prevent this from happening, software engineers should use framework-level date libraries wherever possible, be wary of edge cases, and not assume fixed durations for months and years.