Skip to main content

epochtime

Convert Unix timestamps and decode the time inside IDs, from the terminal. A Python port of the decoder on epochtime.tools.

pipx install epochtime
epochtime 1700000000
epochtime 017f22e2-79b0-7cc3-98c4-dc0c0c07398f   # UUID v7
epochtime 0ujtsYcgvSTl8PAuAdqWYSMnLOv            # KSUID
epochtime --json 507f1f77bcf86cd799439011        # MongoDB ObjectId

As a library:

from epochtime.decode import decode, iso_from_ns
r = decode('01ARYZ6S41TSV4RRFFQ69G5FAV')[0]
iso_from_ns(r['ns'], r['digits'])   # '2016-07-30T22:36:16.385Z'

Reads the same formats as the website. No dependencies. Python 3.9+. MIT licence. Made by epochtime.tools.

Metadata

Release files for epochtime 1.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 epochtime 1.0.0
File Size Uploaded Provenance Actions
epochtime-1.0.0.tar.gz 6.2 kB Without provenance Details for epochtime-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for epochtime 1.0.0
File Interpreter ABI Platform Actions
epochtime-1.0.0-py3-none-any.whl Python 3 none any Details for epochtime-1.0.0-py3-none-any.whl

Total release size: 13.4 kB

Release files / epochtime-1.0.0.tar.gz

Download URL epochtime-1.0.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bd8d2fd98f143e96b7e1cd58a1c067f78f9a6cc5c2573209a6ac7c89fa96c37d
BLAKE2b-256 checksum
How to use checksums
091c9bd266108ce74c7527c664a74e0a937ff9d867e4f9bb278d1e9707b4bacb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / epochtime-1.0.0-py3-none-any.whl

Download URL epochtime-1.0.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac2a419c1c88aac02de9d344f4b05ff62938118e1c7e982ce83d31a7f83616c6
BLAKE2b-256 checksum
How to use checksums
c5f05218a355243f19f48273fa3b2fb22599c960356d816c96fd3400af0caca9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for epochtime 1.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

1.0.0 This release

2 release files 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