[Zope] on dates

massimop at users.berlios.de massimop at users.berlios.de
Mon Oct 11 16:09:44 EDT 2004


On Mon, 2004-10-11 at 20:59 +0100, Cliff Ford wrote:
> This bit of python:
> 
> return DateTime(d).strftime('%H:%M, %a %d %b, %Y')
> 
> giving this error:
> 
>  > Error Type: TypeError
>  > Error Value: int() argument must be a string or a number
> 
> means that your item.data is neither an integer nor a string. You could 
> try to find out what it contains. For example, if you put in this 
> temporary line you should get the content:
> 
> return d
this just returns the full date (es. 2004-10-11 19:14:47)

> return DateTime(d).strftime('%H:%M, %a %d %b, %Y')
> 
> Cliff
> 

thanks for your patience
massimo




More information about the Zope mailing list