This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Description
- ctparse - Parse natural language time expressions in python version: 0.3.6
- Python version: 3.11.1
- Operating System: MacOS
Description
What is the easiest / best way to convert a timedelta object from a Duration object? I want to go from the string "in two days" to a timedelta -> datetime, but the only thing I can think of is to manually try to match up the ctparse enums and fill out the timedelta myself. Is that the best way or is there something I'm missing?