pyepoch
A simple python-based command-line utility to convert time or date stamps to epoch and back.
Usage
pyepoch is installed as a command-line utility accessible as epoch from the command-line.
You can use it to convert time or date string formats to epoch timestamps (with milliseconds):
-$ epoch '2018/1/1'
1514764800000
or if you specify, in seconds:
-$ epoch '2018/1/1' -s
1514764800
You can specify a timestamp as exact and detailed as you want it to. Additionally you can always convert back the epoch timestamp to an iso formatted date string:
-$ epoch 1514764800000
2018-01-01T00:00:00
if your epoch input is in seconds you can add a -s flag, the tool can't determine this automatically.
Bugs
Feel free to report issues, this 'utility' was build out of ease as I got frustrated with manual conversion of timestamps and strings the whole time.
Metadata
Release files for pyepoch 0.0.5
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 |
|---|---|---|---|---|
| pyepoch-0.0.5.tar.gz | 2.6 kB | Without provenance | Details for pyepoch-0.0.5.tar.gz |
Release files / pyepoch-0.0.5.tar.gz
| Download URL | pyepoch-0.0.5.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8138a2cb9778a269c022706013793e711e3e278adb7805fc89a8a05bca95f49
|
|
BLAKE2b-256 checksum How to use checksums |
5af4e29e03d912e17f1751091dd281408b6ee83f6c02098b2ced9d6912d7abda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Security for pyepoch 0.0.5
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.