[ZCM] [ZC] 234/ 3 Assign "Additions to DateTime.py"
Collector: Zope Bugs and Patches ...
zope-coders@zope.org
Wed, 20 Feb 2002 07:09:11 -0500
Issue #234 Update (Assign) "Additions to DateTime.py"
Status Accepted, Zope/feature+solution medium
To followup, visit:
http://collector.zope.org/Zope/234
==============================================================
= Assign - Entry #3 by ajung on Feb 20, 2002 7:09 am
Status: Pending => Accepted
Supporters added: ajung
________________________________________
= Comment - Entry #2 by ajung on Feb 20, 2002 7:05 am
I volunteer to include it to Zope but I would like to see a
unittest for both functions and an updated documentation.
Writing unittests for both functions should be straight
forward. Please check testDateTime.py for examples. If you
have problems, contact me directly (andreas@zope.com).
- aj
________________________________________
= Request - Entry #1 by lucas on Feb 20, 2002 4:12 am
Uploaded: "addToDateTime.py"
- http://collector.zope.org/Zope/234/addToDateTime.py/view
I needed to compute the week number from a DateTime. This turns out to use the Julian Day. The algoritms implented result in week number and Julian Day according to ISO.
Wrote methods for both and added these to DateTime.py. Could you include these in the next release?
I did not write unittests because my inability to get the unittest.py to run. Probably something with environment variables. If you have a tip (or a script) to run one unittest please say so.
Regards, Lucas
==============================================================