Git Product home page Git Product logo

cerebro-timestamp's Introduction

cerebro-timestamp

Cerebro plugin to encode/decode timestamps and dates

Usage

In Cerebro, type a timestamp (Unix time), or ts and a timestamp (Unix time) or a date to encode/decode it. Use ⌘+C or to copy the default result value to clipboard or go down first to select a value to copy.

  • Number of seconds since epoch:
    1488570776 => 2017-03-03T19:52:56Z
    ts 1488570776 => 2017-03-03T19:52:56Z

  • Number of milliseconds since epoch:
    1488570776213 => 2017-03-03T19:52:56Z
    ts 1488570776213 => 2017-03-03T19:52:56Z

  • Date in the Y-m-d format:
    ts 2017-03-03 => 1488570776

  • Current date:
    ts now => All outputs for the current timestamp

Available outputs are:

  • Readable date: 2017-03-03 7:52:56 pm (based on the current locale)
  • ISO 8601: 2017-03-03T19:52:56Z
  • Unix time: 1488570776
  • Unix millisecond time: 1488570776213
  • Long Date: March 3, 2017 7:52 PM
  • Full Date: Friday, March 3, 2017 7:52 PM

The default output will depend on the input.

This plugin is using the MomentJS module to handle the dates.

More infos about timestamp or Unix time here: https://wikipedia.org/wiki/Unix_time

Installing

  • Type plugins timestamp into Cerebro
  • Click install

Related

  • Cerebro – main repo for Cerebro app;

License

MIT © Benoit Zohar

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.