Kotlin / Kotlin/dataframe

Add `DateTimePeriod` parser

Open
#1,778 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.