Metadata-Version: 2.4
Name: epochtime
Version: 1.0.0
Summary: Convert Unix timestamps and decode UUID v7, ULID, snowflake, ObjectId, KSUID and JWT times from the terminal. By epochtime.tools.
Author: Sri Murugan Systems
License-Expression: MIT
Project-URL: Homepage, https://epochtime.tools/
Project-URL: Decoder, https://epochtime.tools/decode.html
Keywords: unix,timestamp,epoch,uuid,ulid,snowflake,objectid,jwt
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# epochtime

Convert Unix timestamps and decode the time inside IDs, from the terminal. A Python port of the decoder on [epochtime.tools](https://epochtime.tools/decode.html).

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

As a library:

```python
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](https://epochtime.tools/).
