Example #1
0
 def CheckTimeFromTicks(self):
     t = sqlite.TimeFromTicks(42)
Example #2
0
def curtime():
    """Return current local time as hh:mm"""
    return str(dbms.TimeFromTicks(ticks()))[:5]
Example #3
0
#!/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)
Example #4
0
 def test_time_from_ticks(self):
     t = sqlite.TimeFromTicks(42)