Skip to content

Fix parse_duration day unit#29

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

Fix parse_duration day unit#29
gavin2014 wants to merge 1 commit into
tine1117:mainfrom
gavin2014:fix-parse-duration-days

Conversation

@gavin2014
Copy link
Copy Markdown

Fixes #1.

Summary:

  • Add the missing d unit mapping to parse_duration (86400 seconds).
  • Add regression tests for 1d and 2d4h.

Verification:

  • python3 -m unittest discover -s tests -v

/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