Skip to content

fix: parse_duration properly counts the days (d) unit#36

Open
Ishant5436 wants to merge 1 commit into
tine1117:mainfrom
Ishant5436:fix/parse-duration-days
Open

fix: parse_duration properly counts the days (d) unit#36
Ishant5436 wants to merge 1 commit into
tine1117:mainfrom
Ishant5436:fix/parse-duration-days

Conversation

@Ishant5436
Copy link
Copy Markdown

Resolves #1

Summary

Added the missing 'd' unit (86400 seconds) to the _UNITS dictionary inside duration_utils.py.
This allows the parser to correctly identify and tally days.

Validation

  • Added test_days for a standalone days test (1d).
  • Expanded test_combined to verify strings like 2d4h.
  • All tests passing.

/claim #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

parse_duration drops the days (d) unit

1 participant