Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.
/ zazu-utime Public archive

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

License

Notifications You must be signed in to change notification settings

puyt/zazu-utime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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