3 ms·
> :) Nice try, but I'm afraid none of the data elements related to dates are zero-indexed (ie month 0, week 0, year 0, etc) If you ask POSIX, or any date/time
by jcranmer 5y ago
> :) Nice try, but I'm afraid none of the data elements related to dates are zero-indexed (ie month 0, week 0, year 0, etc)
If you ask POSIX, or any date/time API that slavishly copies POSIX (say, java.util.Date or JavaScript's Date object), January is month 0.