golang-exercises/get-time/main.go

12 lines
183 B
Go

package main
import (
"fmt"
"time"
)
func main() {
t := time.Now()
fmt.Printf("%d-%02d-%02dT%02d:%02d:%02d\n", t.Year(), t.Month(), t.Day(), t.Hour(), t.Minute(), t.Second())
}