Lines Matching full:minutes
46 offset = timedelta(minutes=offset)
48 dstoffset = timedelta(minutes=dstoffset)
95 self.assertEqual(fo.utcoffset(dt), timedelta(minutes=3))
97 self.assertEqual(fo.dst(dt), timedelta(minutes=42))
112 offset = timedelta(minutes=-300)
175 eq(td(), td(weeks=0, days=0, hours=0, minutes=0, seconds=0,
182 eq(td(hours=1), td(minutes=60))
183 eq(td(minutes=1), td(seconds=60))
190 eq(td(hours=1.0/60), td(minutes=1))
191 eq(td(minutes=1.0/60), td(seconds=1))
291 minutes=-3,
301 minutes=-3,
378 eq(str(td(hours=12, minutes=58, seconds=59)), "12:58:59")
379 eq(str(td(hours=2, minutes=3, seconds=4)), "2:03:04")
380 eq(str(td(weeks=-30, hours=23, minutes=12, seconds=34)),
386 eq(str(td(days=999999999, hours=23, minutes=59, seconds=59,
391 for td in (timedelta(days=999999999, hours=23, minutes=59,
504 delta = timedelta(days=1, hours=2, minutes=3, seconds=4,
930 # 3652058 days, 23 hours, 59 minutes, 59 seconds, 999999 microseconds
1303 # bad minutes
1776 # bad minutes
2003 return timedelta(minutes = dt and 42 or -42)
2011 expected = timedelta(minutes=(cls is time and -42 or 42))
2034 self.offset = timedelta(minutes=offset)
2073 def utcoffset(self, dt): return timedelta(minutes=-1439)
2074 def dst(self, dt): return timedelta(minutes=1439)
2077 self.assertEqual(t.utcoffset(), timedelta(minutes=-1439))
2078 self.assertEqual(t.dst(), timedelta(minutes=1439))
2099 # Not a whole number of minutes.
2116 return timedelta(minutes=t.minute)
2119 return timedelta(minutes=59)
2182 self.assertEqual(t1.utcoffset(), timedelta(minutes=-300))
2183 self.assertEqual(t2.utcoffset(), timedelta(minutes=0))
2184 self.assertEqual(t3.utcoffset(), timedelta(minutes=60))
2194 self.assertEqual(t1.dst(), timedelta(minutes=1))
2195 self.assertEqual(t2.dst(), timedelta(minutes=-2))
2196 self.assertEqual(t3.dst(), timedelta(minutes=3))
2274 self.assertEqual(derived.utcoffset(), timedelta(minutes=-300))
2308 zm200 = FixedOffset(timedelta(minutes=-200), "-200")
2358 self.offset = timedelta(minutes=22)
2360 self.offset += timedelta(minutes=1)
2366 self.assertEqual(t1.utcoffset(), timedelta(minutes=23))
2367 self.assertEqual(t2.utcoffset(), timedelta(minutes=24))
2444 # Change t1 to subtract 2 minutes, and t1 should be smaller.
2478 return timedelta(minutes=1440) # out of bounds
2501 self.assertEqual(derived.utcoffset(), timedelta(minutes=-300))
2528 self.assertEqual(t1.utcoffset(), timedelta(minutes=-300))
2529 self.assertEqual(t2.utcoffset(), timedelta(minutes=0))
2530 self.assertEqual(t3.utcoffset(), timedelta(minutes=60))
2587 delta = timedelta(weeks=1, minutes=12, microseconds=5678)
2623 timedelta(minutes=2*1439))
2634 self.assertEqual(another.utcoffset(), timedelta(minutes=42))
2646 weirdtz = FixedOffset(timedelta(hours=15, minutes=58), "weirdtz", 0)
2672 self.assertEqual(another.utcoffset(), timedelta(minutes=42))
2690 utcoffset = timedelta(hours=-15, minutes=39) # arbitrary, but not zero
2724 dstvalue = timedelta(minutes=dstvalue)
2758 dstvalue = timedelta(minutes=dstvalue)
2771 self.uofs = timedelta(minutes=uofs)
2841 zm200 = FixedOffset(timedelta(minutes=-200), "-200")
2917 return timedelta(minutes=t.minute)
2920 return timedelta(minutes=59)
2929 expected = timedelta(minutes=x.minute - y.minute)
2946 expected = timedelta(minutes=(11-59)-0)
2949 expected = timedelta(minutes=0-(11-59))
2966 self.offset = timedelta(minutes=22)
2968 self.offset += timedelta(minutes=1)
2974 self.assertEqual(t1.utcoffset(), timedelta(minutes=23))
2975 self.assertEqual(t2.utcoffset(), timedelta(minutes=24))
3160 timedelta(minutes=1),