Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

py datetime.date get unix

import time
import datetime
d = datetime.date(2015,1,5)

unixtime = time.mktime(d.timetuple())
# 1420412400.0 (float)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #py #unix
ADD COMMENT
Topic
Name
3+9 =