[Zope] date format in other time-zone

Chris Gray Chris Gray <cpgray@library.uwaterloo.ca>
Sun, 12 Mar 2000 12:05:55 -0500 (EST)


Some quick examples.

<dtml-var "_.DateTime()">
gives you current date and time in local time zone
<dtml-var "_.DateTime()+1.0">
current date and time plus one day
<dtml-var "_.DateTime()+(1.0/24)">
current date and time plus one hour
<dtml-var "_.DateTime('GMT')">
current date and time in GMT zone
<dtml-var "_.DateTime().toZone('GMT')">
current date and time in GMT zone

Hope it helps.
Chris

On Sun, 12 Mar 2000, Sin Hang Kin wrote:

> Is it possible to format a date to GMT or in general in other timezone other
> zone?
> 
> I have read through the Quick reference but do not have answer. The
> ToZone(z) is listed there under DateTime. But How can I use that?
> 
> Moreover, how can I make date-time calculate : adding 3 days to current
> time. Add 2 minutes to current time, etc.
> 
> Rgs,
> 
> Kent Sin
> 
> 
> 
> _______________________________________________
> 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 )
> 
>