4 ms·
Yes and: > Just the old 49.7 days cycle... I've encountered datetime bugs and learned to take preventative measures. I generally add a virtual clock shim to
by specialist 5y ago
Yes and:
> Just the old 49.7 days cycle...
I've encountered datetime bugs and learned to take preventative measures.
I generally add a virtual clock shim to my projects, eg wrapping System.currentTimeMillis() or equiv.
Then I write unit tests for anticipated edge cases. Like midnight, end/start of year, etc. To ensure reporting, rollups, logging, grooming, etc. are working correctly.
Also allows me simulate elapsed time, so I verify out of order event processing and so forth.