epochis
A CLI to convert offsets from epoch to human readable dates
Usage
$ epochis --help
Usage
epochis {date}{unit}
Example
epochis 604m
Supported Units
m: months since epoch
d: days since epoch
s: seconds since epoch
ms: milliseconds since epoch
Examples
# months since epoch
$ epochis 604m
2020-05
# days since epoch
$ epochis 18409d
2020-05-26
# seconds since epoch
$ epochis 1590537600s
2020-05-26 00:00:00
# milliseconds since epoch
$ epochis 1590537600ms
2020-05-26 00:00:00.000
Timezone support
All dates are in UTC. Timezone support may be added in the future.
Why doesn't this use third-party libraries?
There are plenty of libraries to choose from for functionality such as CLI args parsing so why didn't I use them? This project is just for fun so why not? I like to practice by writing functionality from scratch.
Dev Notes
To install locally as standalone CLI
python setup.py install
To upload to pypi
python setup.py sdist
twine upload dist/*
To run unit tests
python -m unittest
Metadata
Release files for epochis 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| epochis-1.1.2.tar.gz | 4.5 kB | Without provenance | Details for epochis-1.1.2.tar.gz |
Release files / epochis-1.1.2.tar.gz
| Download URL | epochis-1.1.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffcc6edc37c1dde0540554fe792c2e876d98376ab1eda89de06a7b8a83249f40
|
|
BLAKE2b-256 checksum How to use checksums |
f7f7c031bd71b05cad7702cba3b5c084d5e47e02403cbb0eeb8b4549dd702555
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.2
|
Security for epochis 1.1.2
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.