Skip to content

fix: add days (d) unit support to parse_durationparse_duration` was silently ignoring the days (d) unit#28

Open
chenfusong6-droid wants to merge 1 commit into
tine1117:mainfrom
chenfusong6-droid:main
Open

fix: add days (d) unit support to parse_durationparse_duration` was silently ignoring the days (d) unit#28
chenfusong6-droid wants to merge 1 commit into
tine1117:mainfrom
chenfusong6-droid:main

Conversation

@chenfusong6-droid
Copy link
Copy Markdown

Fix: parse_duration was silently ignoring the days (d) unit.

  • Added "d": 86400 to _UNITS dictionary
  • Verified: parse_duration("1d") now correctly returns 86400
  • Verified: parse_duration("2d4h") returns 187200
  • Verified: parse_duration("1w2d3h4m5s") returns 734645

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