Skip to main content

backports.datetime_timestamp

Project description

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)

1.0.1

Fixed TypeError on import.

1.0

Initial release.

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.0.1.zip (5.0 kB view details)

Uploaded Source

File details

Details for the file backports.datetime_timestamp-1.0.1.zip.

File metadata

File hashes

Hashes for backports.datetime_timestamp-1.0.1.zip
Algorithm Hash digest
SHA256 c7a90670085076e103a16d31cec018feec03eaf230105dc1be84124b7209492e
MD5 53e57752f49ebb9b2bd6966c6d8b5195
BLAKE2b-256 d65810c43793bfa802ef583deb75b7feede8b1d13a63213331aabf7b1c7f8ad4

See more details on using hashes here.

Provenance

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