Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
func Parse(cfg *setting.Configuration, str string, tz timezone.OffsetData) (date.Date, error)
Types ¶
type FilteredToken ¶
type Parser ¶
type Parser struct {
Now time.Time
Config *setting.Configuration
FnGetDateTimeParams func(p *Parser) map[string]int
FnCreateDateTime func(p *Parser, params map[string]int, loc *time.Location) (time.Time, error)
FnGetDatePartValue func(p *Parser, component, token, directive string) (int, bool)
Tokens []tokenizer.Token
FilteredTokens []FilteredToken
Components []string
ComponentValues map[string]int
ComponentTokens map[string]tokenizer.Token
ParsedTime time.Time
AutoOrder []string
UnsetTokens []tokenizer.Token
SkippedComponent string
SkippedIndexes map[int]struct{}
SkippedTokens strutil.Dict
NumberDirectives [][]string
}
type TokenParseResult ¶
Click to show internal directories.
Click to hide internal directories.