stampy

command module
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Stampy

Test coverage

GitHub go.mod Go version Libraries.io dependency status for GitHub repo

GitHub Downloads (all assets, all releases) GitHub Release GitHub Release Date

https://libraries.io/go/github.com%2FJelloeater%2Fstampy

Stampy

Install

Apt (Perfered)

https://packagecloud.io/jelloeater/stampy

curl -s https://packagecloud.io/install/repositories/jelloeater/stampy/script.deb.sh | sudo bash
sudo apt-get install stampy
Yum (Perfered)
curl -s https://packagecloud.io/install/repositories/jelloeater/stampy/script.rpm.sh | sudo bash
sudo yum install stampy
Binary (eget)

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
Via Go
go install github.com/Jelloeater/stampy@latest

Usage

Settings

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'
Help
❯ 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

Build

Run

go build -o ./build .
./build/stampy

or use https://taskfile.dev/

Previous Work

https://github.com/oz/tz

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址