Hacker News new | ask | show | jobs
by stcredzero 5495 days ago
Date/Time code is notorious. It always seems simpler than it actually is. There are always corner cases you forgot about. None of it is rocket science. Instead, it's the stupid arbitrariness of it that gets you. (Commodity trading is often the same.)
2 comments

My boss taught me that whenever the word date / time / etc creep into a spec double your estimation for completion.

He was trying to be funny to make a point... but there is definitely a nugget of truth to it. Time is hard. (I write embedded DVR software these days)

Stealing a joke from a co-worker, I think that should be called an epoch fail.