https://libraries.io/go/github.com%2FJelloeater%2Fstampy
https://packagecloud.io/jelloeater/stampy
curl -s https://packagecloud.io/install/repositories/jelloeater/stampy/script.deb.sh | sudo bash
sudo apt-get install stampy
curl -s https://packagecloud.io/install/repositories/jelloeater/stampy/script.rpm.sh | sudo bash
sudo yum install stampy
Use https://github.com/zyedidia/eget
curl https://zyedidia.github.io/eget.sh | sh
sudo mv eget /usr/local/bin
sudo eget jelloeater/stampy --to /usr/local/bin --asset=tar.gz
go install github.com/Jelloeater/stampy@latest
You can use ENV_VARs to override settings
export STAMPY_TZ='EST'
export STAMPY_FORMAT='01/02/2006 15:04'
export STAMPY_NTP='pool.ntp.org'
❯ stampy -h
NAME:
stampy - Copy formatted timestamp to system clipboard
USAGE:
stampy [global options] command [command options] [arguments...]
VERSION:
v1.1.0 build 3affdf7d46a8c82a0e0f34be2f6af9d8a10f7eac
AUTHOR:
Jelloeater
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--format value Timestamp format (default: "2006-01-02T15:04:05Z07:00")
--timezone value Timezone (default: "UTC")
--ntp_server value NTP Server (ex pool.ntp.org)
--help, -h show help
--version, -v print the version
Run
go build -o ./build .
./build/stampy
or use https://taskfile.dev/