Answers for "python current datetime to timestamp"

1

python datetime to timestamp

import datetime
now = datetime.datetime.today()
timestamp = datetime.datetime.timestamp(now)
Posted by: Guest on January-26-2021
0

python 2.7 datetime to timestamp

import time
from datetime import datetime
d = datetime(2017, 6, 11, 0, 0)

unixtime = time.mktime(d.timetuple())
Posted by: Guest on September-03-2020

Code answers related to "python current datetime to timestamp"

Python Answers by Framework

Browse Popular Code Answers by Language