proxy.golang.org : github.com/oarkflow/date
Package dateparse parses date-strings without knowing the format in advance, using a fast lex based approach to eliminate shotgun attempts. Validates comprehensively to avoid false positives. By default it leans towards US style dates when there is a conflict. This can be adjusted using the `PreferMonthFirst` parser option. Some ambiguous formats can fail (e.g., trying to parse `31/03/2023“ as the default month-first format `MM/DD/YYYY`), but can be automatically retried with `RetryAmbiguousDateWithSwap`. Consider turning on the the `SimpleErrorMessages` option if you will be attempting to parse many strings that do not match any known format and you need to maximize performance. See README.md for key points on how timezone/location parsing works in go, as this can be counterintuitive initially.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/oarkflow/date
License: MIT
Latest release: 12 months ago
First release: 12 months ago
Namespace: github.com/oarkflow
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 14 days ago