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 details)

Uploaded Source

Built Distribution

File details

Details for the file backports.datetime_timestamp-1.3.0.tar.gz.

File metadata

File hashes

Hashes for backports.datetime_timestamp-1.3.0.tar.gz
Algorithm Hash digest
SHA256 97b14ddf15b9a47e9cae70b51e39b43da01d97f110e974583371d37a40967d6e
MD5 8f34508a52c4cacc6dafa3a577dd7b3d
BLAKE2b-256 e38661be076fab1f3f15607e35232014dcd637a598cb51216dd145b8507938a8

See more details on using hashes here.

File details

Details for the file backports.datetime_timestamp-1.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for backports.datetime_timestamp-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1270a216ee96672d357b2353dde1e596735a1cb0cd759d2217fb3550a18bc92
MD5 4faec0226bf467fd072f9c6997248666
BLAKE2b-256 5427bfa5940dbf5fe939b8e1836ce04ac9cf81b800f2e9784b6d8bf0aa41a6fa

See more details on using hashes here.

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