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 tests Ruff Code style: Black https://img.shields.io/badge/skeleton-2023-informational

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)

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.3.0.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

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