Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.

Latest commit

 

History

History
34 lines (24 loc) · 1.33 KB

README.rst

File metadata and controls

34 lines (24 loc) · 1.33 KB

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)