Updated Caper to v0.2.9

This commit is contained in:
Dean Gardiner
2013-12-09 11:23:57 +13:00
parent f648af66a6
commit 93aa5b1920
6 changed files with 84 additions and 30 deletions
+4
View File
@@ -74,3 +74,7 @@ def xrange_six(start, stop=None, step=None):
return range(start)
else:
return xrange(start)
def delta_seconds(td):
return (td.microseconds + (td.seconds + td.days * 24 * 3600) * 1e6) / 1e6