golang build time object for specific datetime

Developer from somewhere

Problem: want to have a datetime for a specific day, at a specific hour

Solution: one possible solution here:

func Bod(t time.Time) time.Time {
    year, month, day := t.Date()
    return time.Date(year, month, day, 0, 0, 0, 0, t.Location())
}