python - how to display time as epoch?

Viewed 12761

I need to display the current time as an epoch in python to pass as a variable into some code how do I go about doing that?

ie. 1458410416

Every method of

import datetime
datetime.datetime()

gives human readable values.

2 Answers
Related