MCPcopy Create free account
hub / github.com/kataras/iris / IsZeroTime

Function IsZeroTime

context/context.go:3403–3405  ·  view source on GitHub ↗

IsZeroTime reports whether t is obviously unspecified (either zero or Unix()=0).

(t time.Time)

Source from the content-addressed store, hash-verified

3401
3402// IsZeroTime reports whether t is obviously unspecified (either zero or Unix()=0).
3403func IsZeroTime(t time.Time) bool {
3404 return t.IsZero() || t.Equal(unixEpochTime)
3405}
3406
3407// ParseTime parses a time header (such as the Date: header),
3408// trying each forth formats (or three if Application's configuration's TimeFormat is defaulted)

Callers 2

SetLastModifiedMethod · 0.85
CheckIfModifiedSinceMethod · 0.85

Calls 2

IsZeroMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…