3 ms·
I don't follow -- the first time which translates to Feb 29th is entered as 0th March. So that underflows to Feb 29th -- the day before March 1st. The second t
by Erwin 15y ago
I don't follow -- the first time which translates to Feb 29th is entered as 0th March. So that underflows to Feb 29th -- the day before March 1st.
The second time you have, is 0th February. So that underflows back to the previous day, Jan 31st -- the day before February 1st.
- lysium 15y agoI mean there are two t (0th March and Feb 29th) that print as Feb 29 (so any user seeing the value of those t may rightly assume they are the same), but for one t one month earlier is Jan 31, while for the other t one month earlier is Jan 29. Of course, internally, all is correct, but for the user, things may behave strangely.