unix2date

command module
v0.0.0-...-8aa53b4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

README

date2unix

Convert UNIX timestamp to date string.

Installation

go get -u github.com/voidint/unix2date

How to use?

  • System time zone
$ unix2date 1
1970/1/1 08:00:01
  • UTC time zone
$ unix2date --utc 1
1970/1/1 00:00:01
  • Read UNIX timestamp form stdin
$ echo 12345 | unix2date --utc
1970/1/1 03:25:45

or 

$ unix2date
12345
// Enter EOF by CTRL+D(Unix/Linux) or CTRL+Z(Win)
1970/1/1 11:25:45

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