Exemplo n.º 1
0
 def test_time_as_tuple(self):
     time = xldate.xldate_as_tuple(.273611, DATEMODE)
     self.assertEqual(time, (0, 0, 0, 6, 34, 0))
     time = xldate.xldate_as_tuple(.538889, DATEMODE)
     self.assertEqual(time, (0, 0, 0, 12, 56, 0))
     time = xldate.xldate_as_tuple(.741123, DATEMODE)
     self.assertEqual(time, (0, 0, 0, 17, 47, 13))
Exemplo n.º 2
0
 def test_time_as_tuple(self):
     time = xldate.xldate_as_tuple(.273611, DATEMODE)
     self.assertEqual(time, (0, 0, 0, 6, 34, 0))
     time = xldate.xldate_as_tuple(.538889, DATEMODE)
     self.assertEqual(time, (0, 0, 0, 12, 56, 0))
     time = xldate.xldate_as_tuple(.741123, DATEMODE)
     self.assertEqual(time, (0, 0, 0, 17, 47, 13))
Exemplo n.º 3
0
 def test_date_as_tuple(self):
     date = xldate.xldate_as_tuple(2741., DATEMODE)
     self.assertEqual(date, (1907, 7, 3, 0, 0, 0))
     date = xldate.xldate_as_tuple(38406., DATEMODE)
     self.assertEqual(date, (2005, 2, 23, 0, 0, 0))
     date = xldate.xldate_as_tuple(32266., DATEMODE)
     self.assertEqual(date, (1988, 5, 3, 0, 0, 0))
Exemplo n.º 4
0
 def test_date_as_tuple(self):
     date = xldate.xldate_as_tuple(2741., DATEMODE)
     self.assertEqual(date, (1907, 7, 3, 0, 0, 0))
     date = xldate.xldate_as_tuple(38406., DATEMODE)
     self.assertEqual(date, (2005, 2, 23, 0, 0, 0))
     date = xldate.xldate_as_tuple(32266., DATEMODE)
     self.assertEqual(date, (1988, 5, 3, 0, 0, 0))