How do I add hours, minutes, and seconds (defined as ints) to the current time, similar to AddDate
?
timein := time.Now().Local().AddDate(Hours, Mins, Sec)
but with hours, minutes, and seconds.
AddDate
takes (and adds) year, month, day as parameters, not hour, minute, second.
From https://golang.org/pkg/time/#Time.AddDate:
func (t Time) AddDate(years int, months int, days int) Time