Pydateparser
Date Extraction Library in Pure Python
Install / Use
/learn @GlibAI/PydateparserREADME
pydateparser
<img src="https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat">
<img src="https://travis-ci.org/GlibAI/pydateparser.svg?branch=master">
Table of Contents
Installation
pydateparser is distributed on PyPI as a universal wheel and is available on Linux/macOS and Windows and supports Python 3.6+.
$ pip install pydateparser
Usage
sample input:
from pydateparser import DateParser as parser
text = 'Today is 10/12/16 and tomorrow is January 01 2019.'
dp = parser(text, start_year=2000, end_year=2020, locale=None)
sample output:
dp.date
#output
[datetime(date='january 01 2019', token_span=(34, 49), token_index=(6, 8), locale='%B %d %Y'),
datetime(date='10/12/16', token_span=(9, 17), token_index=(2, 2), locale='%d/%m/%y')]
for an extended usage demo refer this notebook.
License
pydateparser is distributed under the terms of the MIT License.
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
