I have some code written in Go which I am trying to update to work with the latest weekly builds. (It was last built under r60). Everything is now working except for the fol
Building on the idea from another answer here, to get a human-readable interpretation, you can use:
package main import ( "fmt" "time" ) func main() { timestamp := time.Unix(time.Now().Unix(), 0) fmt.Printf("%v", timestamp) // prints: 2009-11-10 23:00:00 +0000 UTC }
Try it in The Go Playground.