From a8fb42b6ec4045810c1af55d7537569478fecae5 Mon Sep 17 00:00:00 2001 From: Boukabouya Date: Sat, 30 Dec 2023 07:18:29 +0100 Subject: [PATCH] ex7 done --- hello/main.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hello/main.go b/hello/main.go index 8ab932f..e88425b 100644 --- a/hello/main.go +++ b/hello/main.go @@ -2,8 +2,17 @@ package main import ( "fmt" + "time" ) func main() { - fmt.Println("Hello from Go!") + n := time.Now() + fmt.Println("I lunch this App At :", n) + + t := time.Date(2023, time.December, 30, 7, 11, 0, 0, time.UTC) + fmt.Println("I lunch this App At :", t) + fmt.Println(t.Format(time.ANSIC)) + + parsedTime, _ := time.Parse(time.ANSIC, "Sat Dec 30 07:11:00 2023") + fmt.Printf("The type of parsedTime is %T\n", parsedTime) }