d3/d3-time-format

ISO weekday number (%u)

adius opened this issue · 4 comments

adius commented

ISO weekdays are Monday based and numbered 1-7, but d3 only provides %w, which is Sunday based and numbered 0-6.

E.g. momentjs uses E for ISO weekday.

Related #8; having ISO 8601 weekday number is not especially useful without also having support for ISO 8601 week numbers. (%U and %W are not ISO 8601 week numbers.)

For consistency with strftime this should use the %u directive.

Fixed in #36.