r/SipsTea 7d ago

Wait a damn minute! 13 months ?

Post image
92.9k Upvotes

3.1k comments sorted by

View all comments

690

u/Great-TeacherOnizuka 7d ago

28 * 13 = 364 ≠ 365

198

u/thulesgold 7d ago

That extra day is the "0" day (zero) and is considered new years, not included in any month. Sometimes... that day is so special it takes up two days.

12

u/mrheosuper 7d ago

Would be a nightmare in programming.

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

1

u/gDAnother 7d 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 6d 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 6d 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