Skip to main content

unix-time

Unix timestamp made easy.

from unix_time import *

now = ts_now()  # 1568078625, 2019-09-10T01:23:45

yesterday = ts_yesterday()  # 1567987200, 2019-09-09T00:00:00
today = ts_today()  # 1568073600, 2019-09-10T00:00:00
tomorrow = ts_tomorrow()  # 1568160000, 2019-09-11T00:00:00

from datetime import datetime

dt = datetime.fromisoformat('2019-09-10T01:23:45+00:00')

date_plus_time = ts(dt)  # 1568078625, 2019-09-10T01:23:45
date_no_time = ts_date(dt)  # 1568073600, 2019-09-10T00:00:00

Metadata

Release files for unix-time 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unix-time 2.0.0
File Size Uploaded Provenance Actions
unix-time-2.0.0.tar.gz 1.4 kB Without provenance Details for unix-time-2.0.0.tar.gz

Release files / unix-time-2.0.0.tar.gz

Download URL unix-time-2.0.0.tar.gz
Size 1.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c6e8b3b05bb80d446b022a3f5f024dedf26f8873370d601263f00c89b4baaff1
BLAKE2b-256 checksum
How to use checksums
8a51b2bb448258eb720b54c40bab39e002b0ef1dd91918ed7b37097a0054ddc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

Security for unix-time 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page