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

Uploaded Source

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