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

ISO 8601 Durations support? #33

Open
Envek opened this issue Sep 12, 2014 · 1 comment · May be fixed by #38
Open

ISO 8601 Durations support? #33

Envek opened this issue Sep 12, 2014 · 1 comment · May be fixed by #38

Comments

@Envek
Copy link

Envek commented Sep 12, 2014

Hello.

Is there plans to support of parsing from and output to ISO 8601 format?

For example, P3Y6M4DT12H30M5S represents a duration of "three years, six months, four days, twelve hours, thirty minutes, and five seconds".

It would be useful, for example, for saving into and read from PostgreSQL's interval column.

See https://en.wikipedia.org/wiki/ISO_8601#Durations for further information.

@ghost
Copy link

ghost commented May 11, 2015

+1 This is also needed for things like logging time tracking entries into QuickBooks Web Connector (accepts a time interval in ISO 8601 format only).

@ghost ghost linked a pull request May 11, 2015 that will close this issue
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 a pull request may close this issue.

1 participant