support `repr:ordinal` for `display` on `datetime`
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 56.1k
- Forks
- 1.7k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 22
Description
Description
in datetime.display there is a repr option for month, I'd also like one for day that allows the use of ordinals. For example:
#datetime(year: 2024, month: 08, day: 04).display("[day repr:ordinal] of [month repr:long] [year])
would turn into
4th of August 2021
what to name the repr I don't really care, just used ordinal as an example
Use Case
Displaying dates in a consistent matter that is more catered toward humans than machines, such as a diary/log entry in a book.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the datetime.display entry point and inspect how the existing month repr option is handled. Confirm the requested day ordinal behavior with the date-display example, and consider the work complete when the documented example produces the expected human-readable date.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- internationalization
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100