Answers for "how to get the current timestamp in python"

9

python get actual timestamp

import datetime
ts = datetime.datetime.now().timestamp()
Posted by: Guest on December-29-2020
0

Get timestamp with pyrhon

import datetime;
ts = datetime.datetime.now().timestamp()
print(ts)
# 1642376713.9055
Posted by: Guest on January-24-2022

Code answers related to "how to get the current timestamp in python"

Python Answers by Framework

Browse Popular Code Answers by Language