snowflake-cli

command module
v0.0.0-...-f3b67d2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: ISC Imports: 4 Imported by: 0

README

snowflake-cli

Easily format Discord and Twitter Snowflakes.

Usage
# Build project, or run `go build -o snowflake .`
make

# Format default
./snowflake 1191470808191737927
# 1704139177130 - 2024-01-01T20:59:37+01:00

# Format in a custom timezone
TZ=America/New_York ./snowflake -s 1191470808191737927 -f "%u - %p (East Coast)"
# 1704139177130 - 2024-01-01T14:59:37-05:00 (East Coast)

# Format custom output
./snowflake -s 1191470808191737927 -f "%u (%t:R) meow %%uwu%%"
# 1704139177130 (<t:1704139177:R>) meow %uwu%
Options
Usage of ./snowflake:
  -f string
    	Format string, options: %u (unix ms), %p (RFC3339), %t (<t:unix>), %t:S (<t:unix:style>) (default "%u - %p")
  -s int
    	Snowflake to parse
  -twitter
    	Set to parse Twitter snowflake instead of Discord
Custom Format

Please see the Discord Timestamp Style docs for more info on the %t and %t:S format.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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