A simple timestamp plugin for Zazu, inspired by this Chrome extension.
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
Add puyt/zazu-utime
inside of plugins
block of your ~/.zazurc.json
file.
{
"plugins": [
"puyt/zazu-utime"
]
}
timestampUnit
: seconds or millisecondsoutputFormat
: see https://sugarjs.com/dates/#/Formatting for all possible options
{
"plugins": [
{
"name": "puyt/zazu-utime",
"variables": {
"timestampUnit": "milliseconds",
"outputFormat": "{yyyy}/{MM}/{dd} {HH}:{mm}:{s}"
}
}
]
}
Most of the plugin it's 💪 is coming from Sugarjs