[Zope] datetime format

Tino Wildenhain tino at wildenhain.de
Mon Mar 5 07:45:26 EST 2007


Andreas Jung schrieb:
> 
...
>> And I would not
>> use it much because you loose all type information and the
>> ability to sort accordingly and calculate with the values.
>>
>> Better format them just for output - which would be in
>> python code.
>>
> 
> It depends on the usecase..if you don't have to deal with different
> date format it is handy to convert it on the RDBMS level..otherwise
> you have to write something like
> 
> <span tal:content="python: row.mydate.strftime(fmtstring)" />
> 

No, you would do that in your formatter class or at least in
the python script preparing the values for the template.

Regards
Tino :-)


More information about the Zope mailing list