home contents changes options help subscribe edit (external edit)

A useful class built in to Zope. Probably an ancestor of the newer python datetime class.

The DateTime object provides an interface for working with dates and times in various formats. DateTime also provides methods for calendar operations, date and time arithmetic and formatting.

DateTime objects represent instants in time and provide interfaces for controlling its representation without affecting the absolute value of the object.

You'll be wanting this API reference

Examples:

 .strftime('%m/%d/%Y %H:%M') =  04/25/2005 10:19

A rewritten, improved version of this is included in recent Python versions as the datetime library. This isn't yet used in Zope 2.x.



subject:
  ( 23 subscribers )