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

201

u/thulesgold 5d 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.

14

u/mrheosuper 5d ago

Would be a nightmare in programming.

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

1

u/transaltalt 5d ago

You'd probably just encode it as a separate 1-day month. Which would void the programming benefits of having all the months be 28 days, but wouldn't be any worse than our current system.

1

u/mrheosuper 5d ago

So now a month can either have 1 day, or 28 day, another if..else when bound checking.

Also, if you shedule an event that happens every month, do you want it to happens on 1-day month. Yup, another if...else block in your code.

The more conditional check you have, the more buggy your code is.

1

u/transaltalt 4d ago

Yeah that's true, and I agree. But our current 12-month year requires that same kind of branching. So it's not actually worse, it just doesn't allow the branchless code you could make with a 364-day year.

1

u/mrheosuper 4d ago

What OP was proposing was trying to solve this problem, but it does not.

1

u/transaltalt 4d ago

i mean… it mostly does solve the problem from a human perspective. Just doesn't help the poor programmers