DevBits
Home
Atlas
Play
About
Sign up
Log in
All
Go
time.Local
Examples using...
time.Local
Recent
Examples
Time.Truncate in Go
by GoDoc
Go
time.Local
time.Minute
time.Second
fmt
fmt.Printf
Truncate returns the result of rounding t down to a multiple of d (since the zero time). If d <= 0, Truncate returns t stripped of any monotonic clock reading but otherwise unchanged.