/zazu-utime

Convert unix timestamps to human-readable dates and vice versa for zazu (http://zazuapp.org)

Primary LanguageJavaScriptMIT LicenseMIT

Zazu-utime

A simple timestamp plugin for Zazu, inspired by this Chrome extension.

Usage

Open Zazu and type a timestamp or human-readable date, the plugin will try and translate most of it.

Examples:

  • now
  • today
  • 1487718000
  • the end of next week

For more examples see https://sugarjs.com/dates/#/Parsing

Installing

Add puyt/zazu-utime inside of plugins block of your ~/.zazurc.json file.

{
  "plugins": [
      "puyt/zazu-utime"
  ]
}

Variables

{
  "plugins": [
    {
        "name": "puyt/zazu-utime",
        "variables": {
            "timestampUnit": "milliseconds",
            "outputFormat": "{yyyy}/{MM}/{dd} {HH}:{mm}:{s}"
        }
    }
  ]
}

Screenshots

example1 example2 example3 example4

Acknowledgments

Most of the plugin it's 💪 is coming from Sugarjs

See also

License

MIT