Natural date time parsing for Go. This package was designed for parsing human-friendly relative date/time ranges in Apex Logs' command-line log search.
Here are some examples of the types of expressions currently supported, arbitrary text is currently ignored.
A default direction can be applied using
WithDirection() for ambiguous expressions such as
september. By default
naturaldate.Past is used, so they will be equivalent to
last sunday and
This project is sponsored by CTO.ai, making it easy for development teams to create and share workflow automations without leaving the command line.
And my GitHub sponsors: