Lines Matching refs:dt1

144         dt1 = datetime(2014, 7, 21, 11, 32, 3, 0, tz1)
146 dt1.utcoffset()
1613 dt1 = self.theclass(*args)
1619 self.assertEqual(dt1.toordinal(), dt2.toordinal())
1620 self.assertEqual(dt2.newmeth(-7), dt1.year + dt1.month - 7)
1928 dt1 = self.theclass(2002, 3, 1, 9, 0, 0)
1931 self.assertEqual(dt1, dt3)
1939 dt1 = self.theclass(MAXYEAR, 12, 31, 23, 59, 59, 999998)
1941 dt2 = dt1 + us
1942 self.assertEqual(dt2 - dt1, us)
1943 self.assertTrue(dt1 < dt2)
2576 dt1 = self.theclass(*args)
2582 self.assertEqual(dt1.toordinal(), dt2.toordinal())
2583 self.assertEqual(dt2.newmeth(-7), dt1.year + dt1.month +
2584 dt1.second - 7)
3187 dt1 = self.theclass(*args)
3193 self.assertEqual(dt1.isoformat(), dt2.isoformat())
3194 self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.second - 7)
3764 dt1 = self.theclass(*args)
3770 self.assertEqual(dt1.utcoffset(), dt2.utcoffset())
3771 self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.second - 7)
4460 dt1 = self.theclass(*args)
4466 self.assertEqual(dt1.utcoffset(), dt2.utcoffset())
4467 self.assertEqual(dt2.newmeth(-7), dt1.hour + dt1.year - 7)
5152 dt1 = datetime.fromtimestamp(s + 3600)
5154 self.assertEqual(dt1.fold, 1)
5180 dt1 = dt0.replace(fold=1)
5182 dt1.timestamp())
5197 dt1 = dt0.replace(fold=1)
5200 adt1 = dt1.astimezone()
5714 dt1 = datetime(2000, 2, 4, tzinfo=tz_act)
5717 self.assertEqual(dt1, dt2)
5718 self.assertEqual(dt1.tzname(), dt2.tzname())
5722 self.assertEqual(dt1.astimezone(timezone.utc), dt_utc)
5740 dt1 = datetime(2000, 2, 4, tzinfo=non_utc)
5743 self.assertEqual(dt1, dt2)
5744 self.assertEqual(dt1.tzname(), dt2.tzname())