You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stricter parsing (#8)
Closes issue #4
* check for leading P, allow for negative
* use switch, add more invalid period string tests, increase parser strictness again
* simplify negative parsing
Stricter parsing (#8)
Closes issue #4
* check for leading P, allow for negative
* use switch, add more invalid period string tests, increase parser strictness again
* simplify negative parsing
Always add P in String() method (#1)
* Always add P in String() method
* Add duration.Format method to convert time.Duration to ISO 8601 duration string
* refactor: use constants for time values
* refactor: extract FromTimeDuration conversion into a separate method
* feat: support negative duration