Caltech Library logo

USAGE

timefmt [OPTIONS] TIME_STRING_TO_CONVERT

SYNOPSIS

timefmt formats the current date or INPUT_DATE based on the output format provided in options. The default input and output format is RFC3339. Formats are specified based on Golang’s time package including the common constants (e.g. RFC822, RFC1123).

For details see https://golang.org/pkg/time/#Time.Format.

One additional time layout provided by timefmt

OPTIONS

-h  display help
-help   display help
-input  Set format for input
-l  display license
-license    display license
-output Set format for output
-utc    timestamps in UTC
-v  display version
-version    display version

EXAMPLES

    timefmt -input "2006-01-02" -output "01/02/2006" "2016-07-02"

Yields “07/02/2016”

    timefmt -input mysql -output RFC822  "2016-07-02 08:08:08"

Yields “02 Jul 16 08:08 UTC”

timefmt v0.0.15