d3-time-format icon indicating copy to clipboard operation
d3-time-format copied to clipboard

Day-of-month with ordinal suffix.

Open mbostock opened this issue 10 years ago • 2 comments

This implementation is limited to ordinal as a suffix, so it won’t support ordinal indicators as prefixes.

TODO

  • [x] Pick a directive (%o).
  • [x] Format ordinal day-of-month in en-US locale.
  • [ ] Format ordinal day-of-month in other locales?
  • [ ] Allow the ordinal to be a prefix instead of a suffix, such as for Chinese?
  • [ ] Decide how to parse ordinal day-of-month?
  • [ ] It’s icky that the locale now contains code rather than being strictly declarative.
  • [ ] Is there a better way to reuse logic across locales?

mbostock avatar Nov 12 '15 00:11 mbostock

It appears the strftime npm package uses %o for ordinal day-of-month, too. Yay.

mbostock avatar Nov 12 '15 14:11 mbostock

Any reason why this hasn't been merged?

raags avatar Mar 11 '22 06:03 raags