timestamp in unix code example
Example 1: unix timestamp bash
date +%s
# Give the number of seconds since epoch
Example 2: from datetime to unix timestamp
import time
import datetime
d = datetime.date(2015,1,5)
unixtime = time.mktime(d.timetuple())
unixtime