Example #1
0
 def test_Time(self):
     t1 = pymonetdb.Time(13, 45, 30)
     t2 = pymonetdb.TimeFromTicks(
         time.mktime((2001, 1, 1, 13, 45, 30, 0, 0, 0)))
     self.assertEqual(str(t1), str(t2))
 def generator(row, col):
     return pymonetdb.TimeFromTicks(ticks + row * 86400 - col * 1313)