[Zope] date arithmetic in DTML
Robin Becker
robin@jessikat.demon.co.uk
Tue, 13 Jul 1999 17:30:42 +0100
In article <Pine.LNX.4.05.9907131719340.3172-100000@ns.ac-copy.net>,
Joachim Schmitz <perry@ac-copy.net> writes
>On Tue, 13 Jul 1999, Michel Pelletier wrote:
>
>>
>>
>> > -----Original Message-----
>> > From: Joachim Schmitz [mailto:perry@ac-copy.net]
>> > Sent: Tuesday, July 13, 1999 8:07 AM
>> > To: zope@zope.org
>> > Subject: [Zope] date arithmetic in DTML
>> >
>> >
>> >
>> > how can I datearithmetic in DTML for example today - 30 days,
>> > to search
>> > for a date in a db, which is not older than today - 30 days.
>> > Where can I
>> > find documentation about it ?
>> >
>>
>> <!--#var "ZopeTime() - 30"--> is 30 days previous today.
>>
>> The DateTime module has many, many options like this. I would suggest
>> looking at: lib/python/DateTime/DateTime.py
>>
>That results in:
><!--
> Error type: DateTimeError
> Error value: Unrecognized timezone:
> -->
>how is the status of the internationalsationproject ? ;)
>
the problem for me is that on win32 I get back
GMT Standard Time or GMT Daylight Time from the time.tzname function.
This appears to be rubbish as far as the DateTime stuff is concerned. If
I knew how I could hack the DateTime garbage to insert timezones of
interest. But then CVS is reporting lots of checkins all the time and I
just noticed another misfeature in external functions; no more try tab?
>
>
>Gruß
>
>Joachim Schmitz
>
>WWW-Consultant
>
>email: js@ac-copy.net
>tel: +49-241-89491-0
>fax: +49-241-89491-29
>
>
>
>_______________________________________________
>Zope maillist - Zope@zope.org
>http://www.zope.org/mailman/listinfo/zope
>
>(For developer-specific issues, use the companion list,
>zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
--
Robin Becker