Documentation ¶ Index ¶ type Date func (d Date) IsZero() bool type Period func (p Period) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Date ¶ type Date struct { Locale string Period Period Time time.Time } Date is object that represents the parsed date with useful information. func (Date) IsZero ¶ func (d Date) IsZero() bool IsZero reports whether the date is empty or not. type Period ¶ type Period uint8 Period is representation of confidence level for the parsed date. For example, if the parsed date has period level `Month`, then the parser is only confident up to the month, while the day and time is taken from the current time. const ( None Period = iota Time Day Month Year ) func (Period) String ¶ func (p Period) String() string Source Files ¶ View all Source files date.go Click to show internal directories. Click to hide internal directories.