Skip to content

fix: add days (d) unit support to parse_duration#48

Open
CJN158 wants to merge 2 commits into
tine1117:mainfrom
CJN158:fix-day-unit
Open

fix: add days (d) unit support to parse_duration#48
CJN158 wants to merge 2 commits into
tine1117:mainfrom
CJN158:fix-day-unit

Conversation

@CJN158

@CJN158 CJN158 commented Jun 9, 2026

Copy link
Copy Markdown

/claim #1

Fix

Added d unit (86400 seconds) to _UNITS dictionary. The token regex already matched d but the unit was missing, causing silent data loss.

Test

Added est_days.py covering:

  • 1d = 86400
  • 2d4h = 187200
  • 1w1d = 691200

@CJN158

CJN158 commented Jun 9, 2026

Copy link
Copy Markdown
Author

Bounty wallet: 0x2d7f2bDe56b9dC22d047ee2721484a1356975Eef

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