Beispiel #1
0
 def CheckTimestampFromTicks(self):
     ts = sqlite.TimestampFromTicks(42)
Beispiel #2
0
 def test_timestamp_from_ticks(self):
     ts = sqlite.TimestampFromTicks(42)
Beispiel #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)
Beispiel #4
0
def now_timestamp():
    return sqlite3.TimestampFromTicks(time.time())