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

Unparse duration in ISO 8601 format? #141

Open
kennyjwilli opened this issue Oct 30, 2019 · 0 comments
Open

Unparse duration in ISO 8601 format? #141

kennyjwilli opened this issue Oct 30, 2019 · 0 comments

Comments

@kennyjwilli
Copy link

It appears the only way to format a duration is using the unparse-duration function which returns a string with an implicit format.

(time-fmt/unparse-duration (time/period :hours 1))
=> "1 hour"

Is there a way to configure the formatting for a duration to output a ISO 8601 string? It uses the format PnYnMnDTnHnMnS for formatting a duration to a string.

@kennyjwilli kennyjwilli changed the title Unparse duration in ICO 8601 format? Unparse duration in ISO 8601 format? Oct 30, 2019
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

1 participant