nr-date is a fast, regex-based Python library designed for parsing human-readable dates and ISO 8601 durations in pure Python. It provides functionality to handle various date and time formats and is known for its performance compared to some standard library alternatives. The library is currently at version 2.1.0 and receives periodic updates, with major releases occurring roughly every few years.
pip install nr-dateVerified import paths — ran on the pinned version, not inferred.
Demonstrates parsing an ISO 8601 datetime string and an ISO 8601 duration string using the respective parsers from `nr.parsing.date`.
Always use `from nr.parsing.date import ISO_8601, duration` or similar specific imports.
Familiarize yourself with the supported format options and ensure input data conforms closely to these patterns. Consider adding custom format strings for highly variable inputs.
Change your import statement from `import nr_date` to `from nr.parsing.date import ISO_8601, duration` (or other specific components you need).
Instead of `nr.parsing.date.parse('...')`, you should use `ISO_8601.parse('...')` or `duration.parse('...')` depending on what you intend to parse.No dependency data recorded yet.
No resource links recorded.