https://github.com/voidint/unix2date
Converts UNIX timestamp to date string command-line tool.
https://github.com/voidint/unix2date
Last synced: 11 months ago
JSON representation
Converts UNIX timestamp to date string command-line tool.
- Host: GitHub
- URL: https://github.com/voidint/unix2date
- Owner: voidint
- License: apache-2.0
- Created: 2016-05-09T03:07:57.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-18T13:37:33.000Z (about 9 years ago)
- Last Synced: 2025-02-01T11:12:53.070Z (about 1 year ago)
- Language: Go
- Size: 28.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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
```