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

Add support for converting duration to HH:MM:SS #52

Closed
macnibblet opened this issue Mar 24, 2017 · 2 comments
Closed

Add support for converting duration to HH:MM:SS #52

macnibblet opened this issue Mar 24, 2017 · 2 comments

Comments

@macnibblet
Copy link

No description provided.

@dmitshur
Copy link
Collaborator

dmitshur commented Mar 24, 2017

This seems pretty similar to #48.

Can you elaborate on how this would be more useful than the default string format for a time.Duration, which has the form "72h3m0.5s"?

@macnibblet
Copy link
Author

I needed the specific format hh:mm:ss which is archiveable via time.Time{}.Add(time.Duration(duration) * time.Second).Format("15:04:05")

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