MHzarini / ngx-time-duration-picker

A generic time duration picker Angular component (v2+)
2 stars 7 forks source link

ISO_8601 duration format #2

Closed FrancescoBorzi closed 6 years ago

FrancescoBorzi commented 6 years ago

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

MHzarini commented 6 years ago

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

FrancescoBorzi commented 6 years ago

@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