Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python datetime to unix timestamp

from datetime import datetime, timedelta
import time
dtime = datetime.now() + timedelta(seconds=3)
unixtime = time.mktime(dtime.timetuple())
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #python #datetime #unix #timestamp
ADD COMMENT
Topic
Name
4+5 =