[Zope] Converting from week no. to date

Lennart Regebro regebro at gmail.com
Mon May 1 13:33:31 EDT 2006


On 5/1/06, Jonas Nielsen <jonasn at mail.tele.dk> wrote:
> DateTime().strftime("%U") converts from date to week no.
>
> Is it possible to convert from (week,year,weekday) to a specific date in
> a python script in zope ?
>
> I could install the mx.DateTime module in python and then make a product
> with a method that used ISO.Week() but is there a more straight forward
> approach ?

Well, steal some code from
http://svn.nuxeo.org/trac/pub/file/CalCore/trunk/src/calcore/isoweek.py
maybe?

--
Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.cps-project.org/


More information about the Zope mailing list