4 ms·
> Tons of code converting back and forth between ints. Code was a mess. Never experienced this myself, it’s trivial in all the languages I can think of. Someti
by fingerlocks 4y ago
> Tons of code converting back and forth between ints. Code was a mess.
Never experienced this myself, it’s trivial in all the languages I can think of. Sometimes you have multiply or divide by 1000 if JavaScript is involved.
I always prefer Unix epoch time. What was the language and stack causing the mess so I know to avoid it?
- icedchai 4y agoThe code was a mess for other reasons beyond the int/timestamp conversions. In some places it was stored as milliseconds, other places seconds. It was python 2 if it matters.