// Chapter 35 example: making a date of your own with time.Date. // Run with: go run exercises/35/02-date.go package main import ( "fmt" "time" ) func main() { start := time.Date(2025, time.August, 17, 9, 30, 0, 0, time.UTC) fmt.Println(start) fmt.Println(start.Year(), start.Month(), start.Day()) fmt.Println(start.Weekday()) // Go moves values that are too big into the next month. odd := time.Date(2025, time.January, 32, 0, 0, 0, 0, time.UTC) fmt.Println(odd.Month(), odd.Day()) // time.Local is the time zone of your computer. meeting := time.Date(2025, time.August, 18, 14, 0, 0, 0, time.Local) fmt.Println(meeting.Hour(), meeting.Minute()) }