package main import ( "fmt" "time" ) func main() { timestamp := time.Now().Format(time.RFC3339) fmt.Println(timestamp) }