exttime
v1.0.3
Published
Extract date time from sentences
Downloads
4
Readme
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 prefix | time prefix | | ---------- | ------------ | | --empty-- | --empty-- | | this | on / by / at | | next |
the day and day shortcut are following -
| day | day shortcut | | --------- | ------------ | | today | tod | | tomorrow | tom | | next week | - | | monday | mon | | tuesday | tue | | wednesday | wed | | thursday | thu | | friday | fri | | saturday | sat | | sunday | sun |