Skip to main content

backports.datetime_timestamp

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/pypi/dm/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)

License

License is indicated in the project metadata (typically one or more of the Trove classifiers). For more details, see this explanation.

Project details


Download files

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

Source Distribution

backports.datetime_timestamp-1.1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

backports.datetime_timestamp-1.1-py2.py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page