When I was a young, young engineer I used to write time libraries for fun… In production code. Yes, that is the engineer equivalent of going down to the London docks in 1650.
First production code blowup was a… Keep calm, just let it out… Was a divide by zero bug in this lib right after new years eve.
Without exception handling.
I have learned to respect, loathe, fear, and sometimes feel affection for time.
But seriously I have a mysql cluster ntp’d to Greenwich and when in query “select now()”. You want your time in Sri Lankan time zones? Navajoe time zones? McMurdo station? On a plane flying west?
Heh, screw you, you get gmt and you’ll like it.
(EBay uses PST and pdt on all their servers. I can’t make this up. except for the ones that don’t!!