currentTime := time.Now().UTC() fmt.Println(currentTime)
location, _ := time.LoadLocation("America/New_York") localTime := time.Date(2021, time.October, 31, 8, 0, 0, 0, location) utcTime := localTime.UTC() fmt.Println(utcTime)This code creates a local time in the Eastern Time zone on October 31st, 2021 at 8:00am and converts it to UTC time using the `UTC()` method. The `time` package is a standard library in Go.