Python/DateToEpoch

#- # import sys, time, datetime if len(sys.argv) < 3: print "Usage pyEpoch YYYY-MM-DD HH:MM" else: intime = sys.argv[1] + " " + sys.argv[2] t = time.strptime(intime, "%Y-%m-%d %H:%M") t = datetime.datetime(*t[:6]) print "Epoch Seconds:", time.mktime(t.timetuple)
 * 1) !/usr/bin/python
 * 1) This script will convert arg1 (Date) and arg2 (Time) to Epoch Seconds