dateFormat
does to things:
- converts the last arg into a
time.Time
. If it’s already atime.Time
, it does nothing - calling t.Format(layout)
So, in your case, yes.
But date formatting in Go can be confusing, there is even a web page around about it.