giovannicoppola / alfred-epoch-converter

Makes it easy to work with epoch timestamps!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

icon

Alfred epoch converter

original by @Snooze92 migrated to Python 3 and Alfred 5

Makes it easy to work with epoch timestamps!

Convert epoch timestamp to human-readable time

You can easily type an epoch timestamp with any precision and convert it into a human readable string: convert-epoch

Select the option you want, press enter, and the value is copied into your clipboard: convert-epoch-notification

If you have an epoch timestamp in your clipboard, no need to type or paste it. The workflow will recognize it for you: convert-clipboard-epoch

Convert human-readable time to epoch timestamp

You can easily type a human-readable time and convert it into an epoch timestamp with any precision: convert-time

Select the option you want, press enter, and the value is copied into your clipboard: convert-time-notification

If you have a human-readable time in your clipboard, no need to type or paste it. The workflow will recognize it for you: convert-clipboard-time

Usage

  • ts <timestamp> will guess the precision and display as human readable, both Local and GMT
  • ts <YYYY-mm-dd> will give epoch timestamps on that date, at midnight
  • ts <YYYY-mm-dd> <HH:MM:SS> will give epoch timestamps on that date, at that time (both space and T are supported as separator, seconds are optional)
  • ts <HH:MM:SS> will give epoch timestamps for today, at that time (seconds are optional)
  • ts will display the current time as a UNIX epoch timestamp with different precisions, as well as attempt converting what is in your clipboard

About

Makes it easy to work with epoch timestamps!

License:GNU General Public License v3.0


Languages

Language:Python 100.0%