Remix.run Logo
jabroni_salad 5 days ago

In mainframes, Julian dates are popular for that reason. YYDDD (day of year).

When is 30 days after today? 25206+30

alexanderchr 4 days ago | parent [-]

Maybe I’m missing something but then what is 30 days after Christmas? 25389?

mpyne 4 days ago | parent [-]

25389 mod 365, presumably. The very fancy mainframes probably would pick the appropriate modulus based on whether it was a leap year or not.

cortesoft 4 days ago | parent [-]

What happens when you want to add more than 365 days to a date, then?