https://github.com/jelloeater/stampy
Copy formatted time stamp to system clipboard (ISO 8601 + NTP)
https://github.com/jelloeater/stampy
cli clipboard go golang iso8601 ntp timestamp
Last synced: 5 months ago
JSON representation
Copy formatted time stamp to system clipboard (ISO 8601 + NTP)
- Host: GitHub
- URL: https://github.com/jelloeater/stampy
- Owner: Jelloeater
- License: mit
- Created: 2024-08-23T01:49:57.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-31T17:08:02.000Z (12 months ago)
- Last Synced: 2025-05-15T19:53:33.321Z (5 months ago)
- Topics: cli, clipboard, go, golang, iso8601, ntp, timestamp
- Language: Go
- Homepage: https://github.com/Jelloeater/stampy
- Size: 612 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: codeowners
Awesome Lists containing this project
README
# Stampy
[](https://github.com/Jelloeater/stampy/actions/workflows/test.yml)

[](https://goreportcard.com/report/github.com/jelloeater/stampy)



****

## Install
### Apt (Perfered)
https://packagecloud.io/jelloeater/stampy
```shell
curl -s https://packagecloud.io/install/repositories/jelloeater/stampy/script.deb.sh | sudo bash
sudo apt-get install stampy
```### Yum (Perfered)
```shell
curl -s https://packagecloud.io/install/repositories/jelloeater/stampy/script.rpm.sh | sudo bash
sudo yum install stampy
```### Binary (eget)
Use
```shell
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
```### Via Go
```shell
go install github.com/Jelloeater/stampy@latest
```## Usage
### Settings
You can use ENV_VARs to override settings
```shell
export STAMPY_TZ='EST'
export STAMPY_FORMAT='01/02/2006 15:04'
export STAMPY_NTP='pool.ntp.org'
```### Help
```shell
❯ stampy -h
NAME:
stampy - Copy formatted timestamp to system clipboardUSAGE:
stampy [global options] command [command options] [arguments...]VERSION:
v1.1.0 build 3affdf7d46a8c82a0e0f34be2f6af9d8a10f7eacAUTHOR:
JelloeaterCOMMANDS:
help, h Shows a list of commands or help for one commandGLOBAL 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
```## Build
Run
```shell
go build -o ./build .
./build/stampy
```or use
## Previous Work