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 duration format #2

Closed
FrancescoBorzi opened this issue Oct 10, 2017 · 2 comments
Closed

ISO_8601 duration format #2

FrancescoBorzi opened this issue Oct 10, 2017 · 2 comments

Comments

@FrancescoBorzi
Copy link

Is there a way to convert the result to ISO_8601 duration format ?

@MHzarini
Copy link
Owner

you can use moment-isoduration to convert the value in onChange output function.

@FrancescoBorzi
Copy link
Author

FrancescoBorzi commented Oct 10, 2017

@MHzarini Thanks. However, it would be nice if its logic can be included into this component, so no extra libraries need to be imported.

EDIT: in case someone else needs it, I created a new component which works with ISO_8601 out of the box (no additional libs needed):

https://github.com/ShinDarth/ngx-duration-picker

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

No branches or pull requests

2 participants