-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance ParseDuration with configurable parsing options
Introduce ParseDuration() as the primary and simplest entrypoint for parsing durations. By default it operates in "single-unit mode", meaning only one unit type is allowed per input string (e.g., "1d" as opposed to permitting "1d3h5m"). Assumes milliseconds as the default unit when none is specified.
- Loading branch information
Showing
4 changed files
with
657 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.