def CheckTimeFromTicks(self): t = sqlite.TimeFromTicks(42)
def curtime(): """Return current local time as hh:mm""" return str(dbms.TimeFromTicks(ticks()))[:5]
#!/usr/bin/python # -*- coding: utf-8 -*- import sqlite3 as lite a = lite.Time(14, 30, 33) print a, type(a) b = lite.Timestamp(2013, 5, 3, 16, 33, 10) print b, type(b) c = lite.TimeFromTicks(1360090360) print c, type(c) d = lite.TimestampFromTicks(1360090360) print d, type(d)
def test_time_from_ticks(self): t = sqlite.TimeFromTicks(42)