I have a timestamp coming in, I wonder if there\'s a way to round it down to the start of a day in PST. For example, ts: 1305861602 corresponds to 2016-04-14,
1305861602
2016-04-14,
You can simply use duration 24 * time.Hour to truncate time.
24 * time.Hour
t := time.Date(2015, 4, 2, 0, 15, 30, 918273645, time.UTC) d := 24 * time.Hour t.Truncate(d)
https://play.golang.org/p/BTz7wjLTWX