-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.txt
72 lines (45 loc) · 1.87 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Installing parsedatetime
------------------------
python setup.py install
Python 3.+ is required for parsedatetime v1.+
Running Unit Tests
------------------
In the source tree do the following:
python run_tests.py parsedatetime
Using parsedatetime
-------------------
The simple example of how to use parsedatetime is:
import parsedatetime as pdt
cal = pdt.Calendar()
cal.parse("tomorrow")
More detailed examples can be found in the examples/
Documentation
-------------
The generated documentation is included by default in the docs/
directory and can also be viewed online at
http://code-bear.com/code/parsedatetime/docs/index.html
The docs can be generated (into the docs/ directory) using either
of the two commands:
python setup.py doc
epydoc --html --config epydoc.conf
Notes
-----
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()
This code is under some serious refactoring as now it appears
it will have more than one user. Up until now I've been the
only person to even look at the code so bear with me please :)
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 it's current state
with the help the Chandler folks, most especially Darshana.