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

format_timespan should accept a datetime.timedelta object #27

Closed
troyhoffman opened this issue Apr 13, 2018 · 0 comments
Closed

format_timespan should accept a datetime.timedelta object #27

troyhoffman opened this issue Apr 13, 2018 · 0 comments

Comments

@troyhoffman
Copy link

troyhoffman commented Apr 13, 2018

I could use to_seconds() to convert a time delta to seconds, but it would be nice if format_timespan did it for me. That way, instead of:

format_timespan((current_time - update_time).total_seconds))

I could just call:

format_timespan(current_time - update_time)

@xolox xolox closed this as completed in 2123264 Apr 25, 2018
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