I go with you, but still confused, maybe I'm dense: search in \python2.x\lib\test\test_datetime.py for 1439 and you may understand why... e.g.
*** 2031,... def test_utc_offset_out_of_bounds(self): def test_tzinfo_classes(self):
*** 2746,2752 **** # dst() at the edge. self.assertEqual(cls(1,1,1, tzinfo=DST(1439)).timetuple().tm_isdst, 1) self.assertEqual(cls(1,1,1, tzinfo=DST(-1439)).timetuple().tm_isdst, 1)
# dst() out of range. self.assertRaises(ValueError, cls(1,1,1, tzinfo=DST(1440)).timetuple) self.assertRaises(ValueError, cls(1,1,1, tzinfo=DST(-1440)).timetuple)
if u can - plz explain...
I go with you, but still confused, maybe I'm dense: x\lib\test\ test_datetime. py for 1439 and you may understand why...
search in \python2.
e.g.
*** 2031,... offset_ out_of_ bounds( self): classes( self):
def test_utc_
def test_tzinfo_
*** 2746,2752 ****
self.assertEqu al(cls( 1,1,1, tzinfo= DST(1439) ).timetuple( ).tm_isdst, 1)
self.assertEqu al(cls( 1,1,1, tzinfo= DST(-1439) ).timetuple( ).tm_isdst, 1)
# dst() at the edge.
# dst() out of range.
self.assertRai ses(ValueError, cls(1,1,1, tzinfo= DST(1440) ).timetuple)
self.assertRai ses(ValueError, cls(1,1,1, tzinfo= DST(-1440) ).timetuple)
if u can - plz explain...