[Zope] Re: DateTime addition

Wayne Connolly wayne@c-media.com.au
Tue, 17 Jun 2003 21:59:36 -0700 (PDT)


well, zope is very odd and very badly documented...so
dont get to worried.

--- Andreas Jung <andreas@andreas-jung.com> wrote:
> 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 )
> 
> 
> 
> 
> 
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com