Skip to main content

date package for parsing dates

Project description

Package Info

Date Extraction library built on top of Python native date libraries to support business vocabularies.


 pip install datelibrary-javis


 import datelibrary
 from datelibrary.dates import DateData
 text = "my sales from june to aug'
 date_obj = DateData(text)
 >>>['2018-06-01', '2018-08-31'] #list of strings


current date = 5th November 2019

current day = Tuesday

Type Parsed Date
ytd (year to date) ['2019-01-01', '2019-11-05']
mtd (month to date) ['2019-11-01', '2019-11-05']
qtd (quarter to date) ['2019-10-01', '2019-11-05']
l3m (last 3 months) ['2019-07-01', '2019-10-30']
june to august ['2019-06-01', '2019-08-31']
june 2018 to august 2018 ['2018-06-01', '2018-08-31']
june 2018 ['2018-06-01']
1/6/2019 to 2/6/2019 ['2019-06-01', '2019-06-02']
last month ['2019-10-01', '2019-10-31']
last week ['2019-10-27', '2019-10-03']
last year ['2019-01-01', '2019-01-31']

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for datelibrary-javis, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size datelibrary_javis-0.1.0-py3-none-any.whl (7.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size datelibrary-javis-0.1.0.tar.gz (6.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page