misc-tools/go/convert-epoch
2021-09-15 09:26:15 -04:00
..
convert-epoch.go adding the go utilities 2021-09-15 09:26:15 -04:00
go.mod adding the go utilities 2021-09-15 09:26:15 -04:00
README.md adding the go utilities 2021-09-15 09:26:15 -04: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:

$ 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.