https://github.com/willf/wut
WUT: What's the Unix time. Simple command line converter from unix timestamps to local time
https://github.com/willf/wut
Last synced: about 1 year ago
JSON representation
WUT: What's the Unix time. Simple command line converter from unix timestamps to local time
- Host: GitHub
- URL: https://github.com/willf/wut
- Owner: willf
- License: apache-2.0
- Created: 2015-11-05T15:51:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-05T16:15:55.000Z (over 10 years ago)
- Last Synced: 2025-03-24T12:52:26.248Z (about 1 year ago)
- Language: Go
- Size: 0 Bytes
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wut
wut: *W*hat's this *U*nix *T*ime. Simple command line converter from unix timestamps to local time.
It is basically the same as running `date -r ` on the Mac or `date -d '1970-01-01 sec UTC'` on Linux, according to [this StackExchange comment](http://stackoverflow.com/a/14107355/3754075).
Unix time is the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970, ignoring leap seconds.
## Running
`wut` without an argument uses the current Unix time. `wut` with an argument prints the Unix time given as the a local time.
> wut
1446739220 is 2015-11-05 11:00:20 -0500 EST
> wut 1000000000
1000000000 is 2001-09-08 21:46:40 -0400 EDT
## Installing
Binaries are in the `bin` directory (for Mac, Linux, and Windows). You can use [gb](https://getgb.io/) to build it as well:
> cd /path/to/wut
> gb build all
> bin/wut