We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f77cdf8 commit 6e11420Copy full SHA for 6e11420
roundup/date.py
@@ -15,7 +15,7 @@
15
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17
#
18
-# $Id: date.py,v 1.76 2004-10-08 00:32:34 richard Exp $
+# $Id: date.py,v 1.77 2004-11-29 14:32:55 a1s Exp $
19
20
"""Date, time and time interval handling.
21
"""
@@ -760,6 +760,7 @@ def from_seconds(self, val):
760
'''Figure my second, minute, hour and day values using a seconds
761
value.
762
'''
763
+ val = int(val)
764
if val < 0:
765
self.sign = -1
766
val = -val
0 commit comments