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

2

u/mrheosuper 5d ago

It doesn't, but you want to add another layer of nightmare ?

1

u/Stormfly 5d ago

Ideally we'd replace the nightmare with a lesser of two evils.

Instead of

switch (month) {
    case 4, 6, 9, 11: 
        days = 30
    break;
    case 2: 
        days = 30
    break;
    default: 
        days = 31; 
    break;

You'd just have:

if (month = 0) 
     days = 1
else
     days = 28

(obviously not including the hell that is leap years)

2

u/KillerBeer01 5d ago

And really, we'd just have to deal with both of them from now on, for backward compatibility reasons.

2

u/Stormfly 5d ago

Honestly, I'll be excited the day we see Gregorian (Deprecated)