Convert between epoch timestamps and datetime values from Alfred, then copy any selected value to clipboard.
- Trigger conversion with
epoch <value>(orts <value>). - Supports
epoch-clioutput directly (Alfred JSON passthrough on success). - Empty query runs current timestamp + clipboard-assist mode from
epoch-cli. - Epoch input includes an extra formatted date row:
Local formatted (YYYY-MM-DD HH:MM:SS). - Always degrades to valid Alfred fallback JSON for invalid input, missing binary, and runtime errors.
- Press
Enteron any row to copy the selected result viapbcopy.
Set these via Alfred's "Configure Workflow..." UI:
| Variable | Required | Default | Description |
|---|---|---|---|
EPOCH_CLI_BIN |
No | (empty) | Optional absolute path override for epoch-cli (useful for local debugging). |
| Keyword | Behavior |
|---|---|
epoch <epoch-or-datetime> or ts <epoch-or-datetime> |
Convert input via epoch-cli and show copyable result rows. |
epoch or ts |
Show current epoch rows and best-effort conversion rows from clipboard content. |
- Epoch input rows:
Local ISO-likeUTC ISO-likeLocal formatted (YYYY-MM-DD HH:MM:SS)(additional formatted-date row)
- Datetime input rows:
Local epoch (s|ms|us|ns)UTC epoch (s|ms|us|ns)
- Empty query rows:
Now epoch (s|ms|us|ns)- Optional
(clipboard) ...rows when clipboard text is parseable.
bash workflows/epoch-converter/tests/smoke.shscripts/workflow-test.sh --id epoch-converterscripts/workflow-pack.sh --id epoch-converter
scripts/script_filter.sh resolves epoch-cli in this order:
EPOCH_CLI_BIN(if executable)- Packaged binary:
./bin/epoch-cli - Repository release binary:
target/release/epoch-cli - Repository debug binary:
target/debug/epoch-cli
See TROUBLESHOOTING.md.
