All Projects → DanielJDufour → date-extractor

DanielJDufour / date-extractor

Licence: Apache-2.0 license
Extract dates from text

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to date-extractor

language-detector
Detect the language of text
Stars: ✭ 28 (-51.72%)
Mutual labels:  french, arabic, kurdish, sorani
Time Stamp
Get a formatted timestamp. Used in gulp, assemble, generate, and many others.
Stars: ✭ 104 (+79.31%)
Mutual labels:  time, datetime, date
Dpicker
A framework-agnostic minimal date picker
Stars: ✭ 187 (+222.41%)
Mutual labels:  time, datetime, date
Time
Building a better date/time library for Swift
Stars: ✭ 1,983 (+3318.97%)
Mutual labels:  time, datetime, date
Luatz
Time, Date and Timezone library for lua
Stars: ✭ 92 (+58.62%)
Mutual labels:  time, datetime, date
Date And Time
A Minimalist DateTime utility for Node.js and the browser
Stars: ✭ 99 (+70.69%)
Mutual labels:  time, parse, date
Jiffy
Jiffy is a Flutter (Android, IOS and Web) date time package inspired by momentjs for parsing, manipulating, querying and formatting dates
Stars: ✭ 238 (+310.34%)
Mutual labels:  time, datetime, date
Iso8601
Ruby parser to work with ISO8601 dateTimes and durations — http://en.wikipedia.org/wiki/ISO_8601
Stars: ✭ 70 (+20.69%)
Mutual labels:  time, datetime, date
Delorean
Delorean: Time Travel Made Easy
Stars: ✭ 1,793 (+2991.38%)
Mutual labels:  time, datetime, date
ptera
Ptera is DateTime library for Deno
Stars: ✭ 62 (+6.9%)
Mutual labels:  time, datetime, date
iso8601
A fast ISO8601 date parser for Go
Stars: ✭ 122 (+110.34%)
Mutual labels:  time, datetime, date
Date
A date and time library based on the C++11/14/17 <chrono> header
Stars: ✭ 2,389 (+4018.97%)
Mutual labels:  time, datetime, date
Graphql Java Datetime
GraphQL ISO Date is a set of RFC 3339 compliant date/time scalar types to be used with graphql-java.
Stars: ✭ 89 (+53.45%)
Mutual labels:  time, datetime, date
Dateparse
GoLang Parse many date strings without knowing format in advance.
Stars: ✭ 1,365 (+2253.45%)
Mutual labels:  time, datetime, date
Carbon
A simple PHP API extension for DateTime
Stars: ✭ 75 (+29.31%)
Mutual labels:  time, datetime, date
Calendar
📅 PHP Date & Time library that solves common problems in object oriented, immutable way.
Stars: ✭ 113 (+94.83%)
Mutual labels:  time, datetime, date
lit-date
Light-weight, faster datetime formatter for modern browsers.
Stars: ✭ 33 (-43.1%)
Mutual labels:  time, datetime, date
Laydate
layDate(日期与时间组件) 是 layui 独立维护的三大组件之一
Stars: ✭ 1,066 (+1737.93%)
Mutual labels:  time, datetime, date
When
A natural language date/time parser with pluggable rules
Stars: ✭ 1,113 (+1818.97%)
Mutual labels:  time, datetime, date
Tail.datetime
A lightweight, translat- and configurable Open Source DateTime Picker, written in pure vanilla JavaScript!
Stars: ✭ 139 (+139.66%)
Mutual labels:  time, datetime, date

Build Status

Requirements Status

Hex.pm

date-extractor

date-extractor helps you extract dates from text

Installation

pip3 install date-extractor

Use

from date_extractor import extract_dates

text = "I arrived in that city on January 4, 1937"
dates = extract_dates(text)
# [datetime.datetime(1937, 1, 4, 0, 0, tzinfo=<UTC>)]

Date extractor also works on dates with hours, minutes and seconds:

from date_extractor import extract_date

date = extract_date("2018-06-07 16:31:54")
# datetime.datetime(2018, 6, 7, 16, 31, 54, tzinfo=<UTC>)

Returning Precision

from date_extractor import extract_date

text = "I arrived in that city in 1937"
date, precision = extract_date(text, return_precision=True)
# precision = 'year'

Features

Languages Supported
Arabic
Chinese (incl. Taiwan)
English
French
Sorani (Kurdish)
Turkish

Testing

To test the package run

python3 -m unittest date_extractor.tests.test

Support

Contact Daniel Dufour at [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].