Added get-time exercise
This commit is contained in:
parent
89fce7631b
commit
285de706f7
|
@ -0,0 +1,3 @@
|
|||
module get-time
|
||||
|
||||
go 1.22.1
|
|
@ -0,0 +1,11 @@
|
|||
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())
|
||||
}
|
Loading…
Reference in New Issue