MCPcopy Create free account
hub / github.com/aws/aws-cli / total_seconds

Function total_seconds

awscli/botocore/compat.py:137–146  ·  view source on GitHub ↗

Returns the total seconds in a ``datetime.timedelta``. This used to be a compat shim for 2.6 but is now just an alias. :param delta: The timedelta object :type delta: ``datetime.timedelta``

(delta)

Source from the content-addressed store, hash-verified

135
136
137def total_seconds(delta):
138 """
139 Returns the total seconds in a ``datetime.timedelta``.
140
141 This used to be a compat shim for 2.6 but is now just an alias.
142
143 :param delta: The timedelta object
144 :type delta: ``datetime.timedelta``
145 """
146 return delta.total_seconds()
147
148
149# Checks to see if md5 is available on this system. A given system might not

Callers 10

test_total_secondsMethod · 0.90
_seconds_remainingMethod · 0.90
_is_expiredMethod · 0.90
_get_credentialsMethod · 0.90
refresh_credentialsMethod · 0.90
_is_expiredMethod · 0.90
_is_expiredMethod · 0.90
_should_refreshMethod · 0.90
_refresh_access_tokenMethod · 0.90
_refresherMethod · 0.90

Calls 1

total_secondsMethod · 0.80

Tested by 1

test_total_secondsMethod · 0.72