Backport of the datetime.timestamp() method added in Python 3.3.
Used as:
from backports.datetime_timestamp import timestamp import datetime dt = datetime.datetime.utcnow() # instead of dt.timestamp(), use timestamp(dt)
Backport of the datetime.timestamp() method added in Python 3.3.
Used as:
from backports.datetime_timestamp import timestamp import datetime dt = datetime.datetime.utcnow() # instead of dt.timestamp(), use timestamp(dt)