Never roll your own date time library kids
@LifesAHaskell
Oh God! Reminds me of TSCAMGR in a problem/change manager written in 370 assembler for IBM's Info/Man application. not only did they define the base registers 4095 bytes apart so most offsets were odd numbers, but they had a truly appalling date calculator that I ripped out and rewrote from scratch so it returned sensible values, and not the -3rd February because leap days were beyond their Ken and a long way into Barbie territory. 3:O((>