python current time epoch code example Example: current date to epoch python >>> datetime.datetime(2012,4,1,0,0).timestamp() 1333234800.0