Documentation
¶
Overview ¶
Package dateparse provides natural language date parsing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustParse ¶
MustParse parses a date and panics if it fails. Use this only for known-good inputs like constants.
func Parse ¶
Parse parses a natural language date string and returns a date in YYYY-MM-DD format. Supported formats:
- today, tomorrow, yesterday
- monday, tuesday, ... (next occurrence, same day = next week)
- next monday, next tuesday, ... (at least 7 days from now)
- next week, next month
- eow (end of week - Friday)
- eom (end of month)
- +N (N days from now)
- in N days, in N weeks
- YYYY-MM-DD (passthrough)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.