Convert an epoch timestamp to a human readable (RFC3339) timestamp.
go install github.com/dhulihan/depoch@latest
$ depoch 1696617071
2023-10-06T12:31:11-06:00
# from STDIN
$ echo "1696617071" | depoch
2023-10-06T12:31:11-06:00
- Why not just use
date
? Because it does not support STDIN, and the CLI flags differ between BSD/GNU.