[Zope] Re: DateTime addition

Andreas Jung Andreas Jung <andreas@andreas-jung.com>
Wed, 18 Jun 2003 06:50:25 +0200


Using the timezone offset of date calculations appears very odd to me.

-aj

--On Dienstag, 17. Juni 2003 18:34 Uhr -0700 Wayne Connolly 
<wayne_connolly@yahoo.com> wrote:

> you first calculate how many hours in advance you wish
> to set the time. Ie. in 6 months (24 * 365/2) and then
> add this to the GMT time as below in zpt format...
>
> <span
> tal:replace="python:template.bobobase_modification_time().toZone('GMT+438
> 0').strftime('%a, %d %b, %Y %X')" />
>
> cheers,
>
> wayne
>
> --- In zope@yahoogroups.com, drew nichols <drew@m...>
> wrote:
>> How do i add 6 months to a new DateTime()
>>
>> TIA
>>
>> --------
>>
>>
>>
>> _______________________________________________
>> Zope maillist  -  Zope@z...
>> http://mail.zope.org/mailman/listinfo/zope
>> **   No cross posts or HTML encoding!  **
>> (Related lists -
>>  http://mail.zope.org/mailman/listinfo/zope-announce
>>  http://mail.zope.org/mailman/listinfo/zope-dev )
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )