unfy

command module
Version: v0.0.0-...-6822589 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: MIT Imports: 11 Imported by: 0

README

Unfy

unfy is a command line utility that automagically identifies and translated UNIX timestamps (since epoch) to human readable timestamps.

Example

Basic example:

$ echo "Timestamp: 1613336683" | unfy
Timestamp: 2021-02-14T22:04:43+01:00

Parsing UNIX timestamps in millisecond resolution:

$ echo "Timestamp: 1613336683123" | unfy --milliseconds
Timestamp: 2021-02-14T22:04:43+01:00
$ echo "Timestamp: 1613336683123" | unfy --milliseconds --predefined-format RFC3339Nano
Timestamp: 2021-02-14T22:04:43.123+01:00

Outputting with relative time:

$ echo "Timestamp: 1613336683" | unfy --output-mode relative
Timestamp: 2 days ago
$ echo "Timestamp: 1613336683" | go run main.go --output-mode absolute+relative
Timestamp: 2021-02-14T22:04:43+01:00 (2 days ago)

The name?

unfy is short for un-UNIX-fy.

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL