IsZeroTime reports whether t is obviously unspecified (either zero or Unix()=0).
(t time.Time)
| 3401 | |
| 3402 | // IsZeroTime reports whether t is obviously unspecified (either zero or Unix()=0). |
| 3403 | func 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) |
no test coverage detected
searching dependent graphs…