Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
// Date order
DateOrder string
// Incomplete dates
CurrentTime time.Time
PreferredDayOfMonth PreferredDayOfMonth
PreferredDateSource PreferredDateSource
StrictParsing bool
RequiredParts []string
// Language detection
SkipTokens []string
DefaultLanguages []string
// Others
ReturnTimeAsPeriod bool
}
func (Configuration) Clone ¶
func (c Configuration) Clone() *Configuration
type PreferredDateSource ¶
type PreferredDateSource uint8
const ( CurrentPeriod PreferredDateSource = iota Past Future )
type PreferredDayOfMonth ¶
type PreferredDayOfMonth uint8
const ( Current PreferredDayOfMonth = iota First Last )
Click to show internal directories.
Click to hide internal directories.