1.0.3 • Published 3 years ago

exttime v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

exttime

extract time from natural sentences

the package is aimed to extract time from natural sentences. few examples are as foolowing -

A typical match would be like this-

"fetch the grocery from store today"

from the above sentence we match the today and the output will be Fri Oct 22 2021 09:00:00 GMT+0530 (India Standard Time) according to the timezone and day you run this on.

few more examples -

  • "lets watch movie this sunday"
  • "lets got the market tomorrow at 12:30"
  • "get a pizza tuesday 06:50pm"
  • "we will make a plane either this monday or friday"

dp d tp t

  • dp> day prefix
  • d > day name or day shortcut
  • tp> time prefix
  • t > time
day prefixtime prefix
--empty----empty--
thison / by / at
next

the day and day shortcut are following -

dayday shortcut
todaytod
tomorrowtom
next week-
mondaymon
tuesdaytue
wednesdaywed
thursdaythu
fridayfri
saturdaysat
sundaysun
1.0.3

3 years ago

1.0.2

3 years ago

0.0.1

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago