misc-tools/go/convert-epoch/README.md

17 lines
545 B
Markdown
Raw Normal View History

2021-09-15 13:26:15 +00:00
# Build the binary
This will likely change into some sort of `Makefile` later, but for now what is needed to build and use this utility is to run the followning commands:
```bash
$ export GOPATH=/home/mock/.local/bin
$ go build .
$ convert-epoch -epoch 1631711695
Epoch time: 1631711695
Local time: Wed, 15 Sep 2021 09:14:55 -0400
Zulu time: Wed, 15 Sep 2021 13:14:55 +0000
```
I would like to remove the `-epoch` flag in favor of just assuming an epoch time value, but that will come later too. Gotta keep learning the language.