import pytz
import datetime
import date_range_parser
# Create a source/reference time
tz_name = u'America/New_York'
timezone = pytz.timezone(tz_name)
src_time = timezone.localize(datetime.datetime(2014, 8, 3, 10, 0, 32))
parse = date_range_parser.parse("after tomorrow and before next wednesday", src_time)
-
Notifications
You must be signed in to change notification settings - Fork 0
priyadarshy/date-range-parser
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Converts natural language date ranges into arrays of dictionaries with start and end datetime objects.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published