[Zope] timeTime() function question

Anthony Baxter Anthony Baxter <anthony@ekit-inc.com>
Wed, 20 Feb 2002 13:37:36 +1100


In addition, note that the original number is a unix timestamp -
seconds since 01/01/1970.
So to add two weeks to it, you'd do:


t + ( 2 * 7 * 24 * 60 * 60 )

Anthony

>>> "Andreas Jung" wrote
> Why do you want to use the timeTime() representation ?
> Just add 14 (2*7 days) to the instance of the corresponding
> DateTime object.
> 
> newDate = DateTime("2002/02/05") + 14
> 
> - aj 
> 
> ----- Original Message ----- 
> From: <hpinson@indepthl.com>
> To: <zope@zope.org>
> Sent: Tuesday, February 19, 2002 20:12
> Subject: [Zope] timeTime() function question
> 
> 
> > Can anyone explain the math behind the Python / Zope UTC  
> > timeTime() function?  I need to add two weeks to a timeTime 
> > generated date, for post processing.
> > 
> > For example; with the  timeTime() generated number:
> > 
> > 1014071233.22
> > 
> > What would two weeks from this number be, in timeTime format?
> > 
> > Harlow Pinson
> > Indepth Learning
> > Email: hpinson@indepthl.com 
> > Web: http://www.indepthl.com
> > Voice: 505-994-2135
> > FAX: 208-475-7678
> > 
> > 
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists - 
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> > 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 

-- 
Anthony Baxter     <anthony@interlink.com.au>   
It's never to late to have a happy childhood.