Add `DateTimePeriod` parser
Open
enhancement
- Dominant language
- Kotlin
- Stars
- 1.1k
- Forks
- 83
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 30
Description
Would allow us to parse Strings like "P2Y4M-1D" into: two years, four months, minus one day; creating a `kotlinx.datetime.DateTimePeriod`.
Blocked by https://github.com/Kotlin/kotlinx-datetime/issues/615
Contributor guide
Research direction
Start by reading the linked kotlinx-datetime issue 615, since this request is explicitly blocked by it. Then inspect the existing date and period parsing entry points in the repository, if available, and use the example "P2Y4M-1D" as the acceptance case; done means it produces a kotlinx.datetime.DateTimePeriod with the stated components.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- data
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100