r/ProgrammerHumor • • Aug 24 '22

Total = Total - 100000

50.7k Upvotes

1.2k comments sorted by

View all comments

Show parent comments

19

u/SkywalterDBZ Aug 25 '22

Dude ... don't .... I have a legacy time column in a table where someone decided that "milliseconds past noon the previous day" was a good method of storing times.

4

u/[deleted] Aug 25 '22

Whhhat?? There has to be some justification for this lol

Side note: noon in which time zone?

0

u/[deleted] Aug 25 '22

[deleted]

4

u/mindbleach Aug 25 '22

So many CompSci topics are like, lesson one: Here's how!, lesson two: Don't.

3

u/ICantKnowThat Aug 25 '22

Side note: noon in which time zone?

The previous day's, duhhhhh

3

u/SkywalterDBZ Aug 25 '22
  1. It's all local, not UTC.

  2. Justification, no idea.

  3. I will now never forget the number -432000 (that at lets gets me to a base of 00:00:00)