Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

datetime to timestamp

from datetime import datetime

# current date and time
now = datetime.now()

timestamp = datetime.timestamp(now)
print("timestamp =", timestamp)
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #datetime #timestamp
ADD COMMENT
Topic
Name
9+9 =