Create time with mktime : mktime « Buildin Function « Python Tutorial






from random import *
from time import *
date1 = (2005, 1, 1, 0, 0, 0, -1, -1, -1)
time1 = mktime(date1)
date2 = (2006, 1, 1, 0, 0, 0, -1, -1, -1)
time2 = mktime(date2)








13.34.mktime
13.34.1.Create time with mktime