How to get timestamp from the structure datetime? What is right alternative for non-existing datetime.utcnow().timestamp()
?
use time
, and int
to remove the milliseconds
from time import time
int(time())
# 1561043225
import time,datetime
time.mktime(datetime.datetime.today().timetuple())
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With