Open atc0005 opened 1 year ago
While attempting to create a scratch Go file I found this stubbed out:
package main
import (
"fmt"
"time"
)
func main() {
t := time.Unix(1663514401, 0)
fmt.Println(t)
}
Noting it here for a reminder of where to start looking.
While reading https://www.devopsschool.com/tutorial/nagios/nagios-faq.html I found this:
and this specific tidbit:
which reminded me of this CLI "recipe" (where
example1
in the example is the hostname):It would be useful to provide a helper for converting the
time_t
format to other commonly used formats.