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