You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Development is done using a pipenv virtual environment
make env
Note: black is still listed as a beta library, and as such, must be installed with the --pre flag
Running Tests
From the source directory
make test
To run tests on several Python versions that are installed in the pipenv virtual environment
$ make tox
[... tox creates a virtualenv for every python version and runs tests inside of each]
py39: commands succeeded
The tests depend on PyICU being installed using the pyicu-binary package which removes the source build step. PyICU depends on icu4c which on macOS requires homebrew
brew install icu4c
Using parsedatetime
Detailed examples can be found in the examples directory.
The Calendar class has a member property named ptc which is created during the class init method to be an instance of parsedatetime_consts.CalendarConstants().
History
The code in parsedatetime has been implemented over the years in many different languages (C, Clipper, Delphi) as part of different custom/proprietary systems I've worked on. Sadly the previous code is not "open" in any sense of that word.
When I went to work for Open Source Applications Foundation and realized that the Chandler project could benefit from my experience with parsing of date/time text I decided to start from scratch and implement the code using Python and make it truly open.
After working on the initial concept and creating something that could be shown to the Chandler folks, the code has now evolved to its current state with the help of the Chandler folks, most especially Darshana.