Skip to main content

Backport of the timestamp method from Python 3.3

Project description

https://img.shields.io/pypi/v/backports.datetime_timestamp.svg https://img.shields.io/pypi/pyversions/backports.datetime_timestamp.svg https://img.shields.io/travis/jaraco/backports.datetime_timestamp/master.svg

Backport of the datetime.timestamp() method added in Python 3.3.

from backports.datetime_timestamp import timestamp import datetime

dt = datetime.datetime.utcnow() # instead of dt.timestamp(), use timestamp(dt)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for backports.datetime-timestamp, version 1.2
Filename, size File type Python version Upload date Hashes
Filename, size backports.datetime_timestamp-1.2-py2.py3-none-any.whl (3.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size backports.datetime_timestamp-1.2.tar.gz (8.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page