def test_Date(self): d1 = pymonetdb.Date(2002, 12, 25) d2 = pymonetdb.DateFromTicks( time.mktime((2002, 12, 25, 0, 0, 0, 0, 0, 0))) self.assertEqual(str(d1), str(d2))
def generator(row, col): return pymonetdb.DateFromTicks(ticks + row * 86400 - col * 1313)