title: Return local beginning of day time object
body: <p>To get a local beginning of today time object I extract YMD and reconstruct the new date. That looks like a kludge. Do I miss some other standard library function?</p>
  
  <p>code also runnable at <a href="http://play.golang.org/p/OSRl0nxyB7" rel="noreferrer">http://play.golang.org/p/OSRl0nxyB7</a> :</p>
  
  <pre><code>func Bod(t time.Time) time.Time {
      year, month, day := t.Date()
      return time.Date(year, month, day, 0, 0, 0, 0, t.Location())
  }
  
  func main() {
      fmt.Println(Bod(time.Now()))
  }
  </code></pre>