Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python datetime to seconds

from datetime import datetime
dt = datetime.today()  # Get timezone naive now
seconds = dt.timestamp()
 
PREVIOUS NEXT
Tagged: #python #datetime #seconds
ADD COMMENT
Topic
Name
3+2 =