Skip to content

Conversation

jdufresne
Copy link
Contributor

TimeDelta.total_seconds() was introduced in Python 2.7 and 3.2. It is available on all supported Python versions.

https://docs.python.org/2/library/datetime.html#datetime.timedelta.total_seconds
https://docs.python.org/3/library/datetime.html#datetime.timedelta.total_seconds

@carltongibson carltongibson added this to the v3.7.4 milestone Nov 9, 2017
Copy link
Collaborator

@carltongibson carltongibson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. Looks good. Thank you.

@carltongibson carltongibson merged commit f8e8381 into encode:master Nov 9, 2017
@jdufresne jdufresne deleted the total-seconds branch November 9, 2017 14:13
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull request Nov 17, 2020
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 this pull request may close these issues.

2 participants