use time.mktime, not time.strftime