5 ms·
Being this a Unicode calendar generator, notice that according to the internacional standard ISO 8601 Monday is the first day of the week. https://en.m.wikiped
by fauria 5y ago
Being this a Unicode calendar generator, notice that according to the internacional standard ISO 8601 Monday is the first day of the week.
https://en.m.wikipedia.org/wiki/ISO_8601 https://en.m.wikipedia.org/wiki/ISO_8601
- lifthrasiir 5y agoISO 8601 is not related to Unicode (ISO/IEC 10646), but if you do care about Unicode you may notice that Unicode CLDR actually supports the preferred first day of the week as a part of locale identifiers [1] (e.g. en-US-u-fw-mon will make the first day of the week Monday, as opposed to the default Sunday for USA). [1] https://www.unicode.org/reports/tr35/#UnicodeFirstDayIdentifier https://www.unicode.org/reports/tr35/#UnicodeFirstDayIdentif...
- psd1 5y agoYep, making Sunday the zero'th day.
- radomir_cernoch 5y agoThis comment made my day. :-)
- fauria 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) https://en.wikipedia.org/wiki/Year_zero https://en.wikipedia.org/wiki/Year_zero update: technically year 0 in ISO 8601 corresponds to year 1 BC
- 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.
- dhosek 5y agoThe definition of Monday as the first day of the week is strictly for the sake of week numbering over the course of the year and does not indicate that a calendar which displays weeks starting with Sunday violates the ISO standard.