[Zope] datetime format

Andreas Jung lists at zopyx.com
Sun Mar 4 11:27:59 EST 2007



--On 4. März 2007 15:57:44 +0000 Garry Saddington 
<garry at schoolteachers.co.uk> wrote:

> On Sunday 04 March 2007 13:32, Andreas Jung wrote:
>> --On 4. März 2007 12:45:20 +0000 Garry Saddington
>>
>> <garry at schoolteachers.co.uk> wrote:
>> > I have 'datetime-format international' set in zope.conf but the date
>> > output is  still rendered in the format (y,m,d)
>>
>> Reading helps..
> Yes, indeed it does, how did you suppose I knew how to set the format in
> the  first place.

DateTime has a documentation and there is strftime() method to provide
support for custom format. The *string* representation of a DateTIme
instance as returned through the __str__() is unlikely a good choice
for application level usage.

-aj

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20070304/0336a4cc/attachment.bin


More information about the Zope mailing list