dat

module
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT

README

dat

Go Report Card

dat is a simple tool for converting epochs,
when called without arguments dat returns the current epoch.
Likewise, if an epoch is not given the current epoch is assumed.

Usage:
  dat [epoch] [flags]

Flags:
  -a, --all             display the epoch and formatted local and utc values of the epoch
  -c, --copy            copy output to the clipboard
  -d, --delta string    a duration in which to modify the epoch (ex:+2h3s) see https://golang.org/pkg/time/#ParseDuration
  -f, --format string   https://golang.org/pkg/time/ format for time output including constant names
  -h, --help            help for dat
  -l, --local           display the formatted epoch in the local timezone
  -m, --milliseconds    epochs in milliseconds
  -p, --paste           read input from the clipboard
  -t, --tf              attempt to parse input as a known time format
  -u, --utc             display the formatted epoch in the utc timezone
  -v, --version         print version and exit
  -z, --zone string     display a specific time zone by tz database name see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

install

See Releases Page for the latest release prebuilt binaries.

Build and install yourself! requires golang

git clone git@github.com:Setheck/dat.git
make install

Directories

Path Synopsis
cmd
dat
pkg

Jump to

Keyboard shortcuts

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