import time import datetime now = datetime.datetime.now() print() print(time.mktime(now.timetuple())) print()