I am looking for python equivalent GNU date(1)
option. Basically I want to convert date into seconds like in the example below, I tried look from the python docs but I couldn't find equivalent time module.
$ convdate="Jul 1 12:00:00 2015 GMT"
$ date '+%s' --date "$convdate"
1435752000
From GNU date(1)
man page
-d, --date=STRING
display time described by STRING, not 'now'