Skip to content

Converts UNIX timestamp to date string command-line tool.

License

Notifications You must be signed in to change notification settings

voidint/unix2date

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Converts UNIX timestamp to date string command-line tool.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published