Large year values are not parsed correctly
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
Research direction
Start by reproducing the large-year examples in the issue and inspect the parser entry point that handles year values. Compare the results with the GNU outputs shown; the work is done when the supported large years parse consistently and the boundary or invalid cases have coverage.
Written by the indexing model from the issue text.
Description
If the year value is larger then 9999, the parsing result is inconsistent with GNU implementation:
Input: 10000-12-31
GNU: 10000-12-31 00:00:00+00:00
parse_datetime: 0000-12-31 00:00:00+00:00
Input: 100000-12-31
GNU: 100000-12-31 00:00:00+00:00
parse_datetime: 2000-12-31 00:00:00+00:00
Input: 1000000-12-31
GNU: 1000000-12-31 00:00:00+00:00
parse_datetime: 0000-12-31 00:00:00+00:00
Input: 10000000-12-31
GNU: 10000000-12-31 00:00:00+00:00
parse_datetime: Invalid input string: cannot be parsed as a relative time
Input: 2147485547-12-31
GNU: 2147485547-12-31 00:00:00+00:00 // This is the max value supported by GNU
parse_datetime: Invalid input string: cannot be parsed as a relative time
- Dominant language
- Rust
- Stars
- 37
- Forks
- 39
- Avg merge
- 17h 48m
- Merged PRs (30d)
- 8
Contributor guide
No contributing guide indexed for this repository
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.
More from uutils/parse_datetime
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
uutils/parse_datetime#317 ·
-
bug good first issue
Difficulty 3/5 1-2 days Newbie friendliness 65/100
uutils/parse_datetime#279 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
uutils/parse_datetime#240 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
uutils/parse_datetime#82 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
uutils/parse_datetime#36 · 4 comments · 1 reaction ·
All issues in uutils/parse_datetime
Similar issues
-
risk:low runtime status:in-progress type:test
Difficulty 1/5 Under an hour Newbie friendliness 92/100
zeroclaw-labs/zeroclaw#11023 ·
-
good first issue refactor
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·