Python date parser that handles 200+ locales and relative dates
AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.
Why it matters
Developers parsing dates from multilingual user input or scraped text can skip writing custom regex and locale handling by installing dateparser, which handles 200+ locales and relative phrases.
dateparser is a free, open-source Python library, released around 2015, that converts messy date text into usable date objects. Unlike Python's built-in tools, it understands dates written in over 200 languages and phrases like '2 weeks ago' or 'next Friday' without configuration. It also resolves ambiguous formats like 03/04/2024 based on the language context.
The article profiles dateparser, a mature open-source Python library (around since 2015) that any team handling dates in multiple languages could adopt at no cost. Its production track record includes Scrapinghub, the company behind Scrapy, using it on millions of date strings. The main risk is maintenance responsibility: it is community-supported rather than a commercial product. No support terms or licensing details are given.
dateparser parses date strings via language detection, locale-specific tokenization and fuzzy matching, returning Python datetime objects. It handles relative expressions ('il y a 3 jours'), locale-aware ambiguity via DATE_ORDER settings ('03/04/2024' as March 4 US, April 3 EU), and accepts languages/locales/settings parameters to hint parsing. No benchmark numbers are given; the stated production evidence is Scrapinghub's use at scale.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Intel One Mono: a monospaced font designed with low-vision developers
Developers with low vision or eye fatigue can read code more clearly, reducing errors and improving productivity.