W3cubDocs

/scikit-learn

sklearn.utils.bench.total_seconds

sklearn.utils.bench.total_seconds(delta) [source]

helper function to emulate function total_seconds, introduced in python2.7

http://docs.python.org/library/datetime.html#datetime.timedelta.total_seconds

Parameters:
delta : datetime object
Returns:
int

The number of seconds contained in delta

© 2007–2018 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.utils.bench.total_seconds.html