Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

from datetime to unix timestamp

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

unixtime = time.mktime(d.timetuple())
unixtime
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #datetime #unix #timestamp
ADD COMMENT
Topic
Name
2+1 =