You should use the Time.IsZero()
function instead:
func (Time) IsZero
or
func (t Time) IsZero() bool
IsZero reports whether t represents the zero time instant, January 1, year 1, 00:00:00 UTC.
You should use the Time.IsZero()
function instead:
func (Time) IsZero
or
func (t Time) IsZero() bool
IsZero reports whether t represents the zero time instant, January 1, year 1, 00:00:00 UTC.