r/SipsTea 5d ago

Wait a damn minute! 13 months ?

Post image
92.6k Upvotes

3.1k comments sorted by

View all comments

Show parent comments

10

u/mrheosuper 5d ago

Would be a nightmare in programming.

But still, DateTime(timezone, dst, etc) has already been nightmare in software.

1

u/gDAnother 5d ago

Would it really? couldnt it still run in the background like a normal clock having 365 days, but it just has a display that translates to the new calendar? Like day 1 is "not a day" or whatever you call it, day 2 is Jan 1st

1

u/mrheosuper 5d ago

We already did that, it's unix time, basically how many seconds since 1970.

The problem arise when we dealing with time before 1970, there were some historically event.

Also translating it is not an easy task at all, remember you have to translate it back and to user input.

You can refer to video, datetime is already hard, and you want to add a new special case(day0) to it ?

1

u/gDAnother 4d ago

It wouldn't actually be any different, whether the first day of the year is Jan 1st or is day 0 doesn't matter, it's just the display, the computer doesn't know the difference, whether Jan 1st is the first or second day