Skip to main content

A CLI to convert offsets from epoch to human readable dates

Project description

epochis

A CLI to convert offsets from epoch to human readable dates

Usage

# 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

Right now all dates are in UTC. In the future timezones will be supported like this.

$ epochis 604m PST
2020-05 PST

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/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

epochis-1.0.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page