Coder Social home page Coder Social logo

epoch-echo's Introduction

epoch-echo

A minimal command line alternative to tools like this.

Copypasta your machine-flavored datetimes from the db or whatever into the ee and ahhhh 😌 a nice human date right there for you in 0 clicks 🌚. Pass a whole long list of some ridiculous mixture of epoch timestamps and readable datetimes and witness πŸ™€ the grand switcharoo 🎠

Built with ✨and typer.

About

Born from the grumblings of a crunchy shell-dweller, ee-cli is designed to fit nicely in a terminal-heavy workflow with tools like tmux, hub, fzf, etc. Those tools and their peers inspired ee greatly.

ee stands for "epoch echo" because that's sort of what the tool does.

ee takes any arbitrary combination of epoch timestamps, datetimes, times, dates, etc, and prints them back as the opposite. ee uses pendulum for these conversions.

By default, ee supports input from the same datetime formats as pendulum.parse, plus the conveniences of "now," "tomorrow," "today," and "yeterday."

More input formats can be used by setting the EXTRA_DATETIME_INPUT_FORMATS environment variable to a json array of these tokens in pendulum

Installation

This is a Python project, so you install it from pip.

pip install ee-cli

The executable is ee

ee  # display help and list commands

Usage

Basic: Convert a list of datetimes, output it to the clipboard.

Interactive: Use the repl to curate a list of converted datetimes, view help, send to clipboard, and more!

Images generated with termtosvg.

See USAGE.md for more.

epoch-echo's People

Contributors

ainsleymcgrath avatar

Stargazers

Philip House avatar  avatar

Watchers

 avatar

epoch-echo's Issues

support for millisecond epochs

when parsing epochs with millisecond resolutions, I get a couldn't parse error. not sure how hard it would be to handle both. I noticed in the code there are explicit references to removing milliseconds from epochs. is there a philosophical reason for not supporting this or can I submit a PR that parses them?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.