Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time: enhancement: parse ISO 8601-formatted durations #32313

Open
mcandre opened this issue May 29, 2019 · 2 comments
Open

time: enhancement: parse ISO 8601-formatted durations #32313

mcandre opened this issue May 29, 2019 · 2 comments

Comments

@mcandre
Copy link

@mcandre mcandre commented May 29, 2019

ISO 8601 provides a standard for representing time durations in a human-readable format:

https://en.wikipedia.org/wiki/ISO_8601#Durations

Could we offer a method for parsing ISO 8601 formatted durations, similar to how the Go time library parses ISO 8601 instantaneous points in dates and times?

@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented May 30, 2019

The usual process would be to write this as an external library first, and then we can consider whether to pull it into the standard library.

@ianlancetaylor ianlancetaylor changed the title Enhancement: Parse ISO 8601-formatted durations time: enhancement: parse ISO 8601-formatted durations May 30, 2019
@bradfitz bradfitz added this to the Unplanned milestone May 30, 2019
@slinkydeveloper
Copy link

@slinkydeveloper slinkydeveloper commented Jul 17, 2020

That's something we're looking for too knative/eventing#3555

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.