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

function to print timedeltas exactly #48

Closed
chrisnorman7 opened this issue Feb 26, 2017 · 2 comments · Fixed by #137
Closed

function to print timedeltas exactly #48

chrisnorman7 opened this issue Feb 26, 2017 · 2 comments · Fixed by #137

Comments

@chrisnorman7
Copy link

Hi,
I find myself using a function regularly that prints a time delta as "4 hours, 3 minutes, and 15.3 seconds". Is this a function you'd be interested in adding to your library?

I'd rather add it to a common library rather than copy and pasting it the whole time.

If you want it I'll open a PR with the requisite code.

Cheers,

Chris

@timc13
Copy link

timc13 commented Jun 2, 2017

It would be great if the function could take a precision argument ("minutes", "seconds", "hours") so that we could return "4 hours, 3 minutes" if we specify the "minutes" precision and don't care about the seconds.

@chrisnorman7
Copy link
Author

Hi,
I just submitted a PR #57 with the alterations you suggested.

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.

3 participants