[ZCM] [ZC] 234/ 1 Request "Additions to DateTime.py"
Collector: Zope Bugs and Patches ...
zope-coders@zope.org
Wed, 20 Feb 2002 04:13:01 -0500
Issue #234 Update (Request) "Additions to DateTime.py"
Status Pending, Zope/feature+solution medium
To followup, visit:
http://collector.zope.org/Zope/234
==============================================================
= 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
==============================================================