time.Now().Sub(t)
instead of time.Since(t)
SCC-S1012The time.Since(t)
helper has the same effect as using time.Now().Sub(t)
.
time.Since(t)
returns the time elapsed since t
. It is shorthand for
time.Now().Sub(t)
.
time.Now().Sub(x)
time.Since(x)