import time import datetime int(time.mktime(datetime.datetime.now().timetuple())) int(time.mktime(datetime.datetime.strptime('2015-04-07 04:30:03','%Y-%m-%d %H:%M:%S').timetuple()))
import time import datetime int(time.mktime(datetime.datetime.now().timetuple())) int(time.mktime(datetime.datetime.strptime('2015-04-07 04:30:03','%Y-%m-%d %H:%M:%S').timetuple()))