Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidTime = errors.New(`Invalid time`)
View Source
var (
ErrOutOfOrderTimeInterval = errors.New("Time Interval is Out of Order")
)
Functions ¶
func MustParseTime ¶
MustParseTime parses a time in the format `2006-01-02 15:04:05 -0700` and panics in case the parsing fails
Types ¶
type FakeClock ¶
type TimeInterval ¶
func MustParseTimeInterval ¶
func MustParseTimeInterval(from, to string) TimeInterval
func ParseTimeInterval ¶
func (TimeInterval) IsZero ¶
func (i TimeInterval) IsZero() bool
Click to show internal directories.
Click to hide internal directories.