[Zope] on dates

massimop at users.berlios.de massimop at users.berlios.de
Mon Oct 11 16:29:07 EDT 2004


On Mon, 2004-10-11 at 21:21 +0100, Cliff Ford wrote:
> Try this in the python script:
> 
> return DateTime(str(d)).strftime('%H:%M, %a %d %b, %Y')
> 
> It just produces the string representation of object d (to create a 
> DateTime object). If d were already a DateTime object you would use:
> 
> return d.strftime('%H:%M, %a %d %b, %Y')
> 
> By way of comfort: I spent a lot of time trying to figure out how to 
> work with dates and have a lot of sympathy with anyone going through the 
> same process.
> 
> Cliff
> 
great! it worked!
kinda tricky but...

thanks again
had much fun :)
massimo






More information about the Zope mailing list