Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python date to timestamp

>>> import time
>>> import datetime
>>> s = "01/12/2011"
>>> time.mktime(datetime.datetime.strptime(s, "%d/%m/%Y").timetuple())
1322697600.0
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Python #date #timestamp
ADD COMMENT
Topic
Name
1+8 =