Skip to content

fix: add missing days (d) unit - 86400 seconds - #128

Open
yosoyjhera wants to merge 1 commit into
tine1117:mainfrom
yosoyjhera:fix-days-unit
Open

yosoyjhera wants to merge 1 commit into
tine1117:mainfrom
yosoyjhera:fix-days-unit

Conversation

@yosoyjhera

Copy link
Copy Markdown

Fixes issue where "1d" and "2d" returned None.

Added missing "d" and "days" units to DURATION_UNITS with value 86400 seconds.

Tested:

  • parse_duration("1d") = 86400
  • parse_duration("2d") = 172800
  • existing tests still pass

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.

1 participant