4 ms·
The biggest falsehood a programmer could believe about time is that they have the ability to roll their own time manager. Just use a battle-hardened library an
by takinola 4y ago
The biggest falsehood a programmer could believe about time is that they have the ability to roll their own time manager. Just use a battle-hardened library and hope for the best. Dealing with time in code is crazy-making in a way I never expected.
- at-fates-hands 4y agoI personally have not had much experience with it. Would love to hear some horror stories you've encountered. It might help me keep an eye out for it.
- jamesfinlayson 4y agoTrying to deal with conversion between time zones or to/from daylight saving can have gotchas which libraries will deal with for you.
- bentcorner 4y agoI agree. I'd wager most programmers don't need to actually worry about calendars, but most occasionally need to worry about time. Just use a library and read the docs for what to expect to happen when you do something like getCurrentTime. What is the resolution, does it monotonically increase, etc. If you actually need to worry about calendars and user input, you have my sympathy.
- mjevans 4y agoHanding those cases correctly might very well be a Turing test...