Introduction. Default formatting Zope DateTime predates Python datetime which was added in Python 2.4. A per-language format string from a translations is preferred. If such string is not available the default is taken from portal_propertiessite_properties Format datetime relative to the current time, human-readable. Use the old syntax for string formatting ( format % values ), as described here: Python that a value is to be inserted at that point in the format string. in the date/ time example), so you no longer have to do those annoying +"/"+ string concatenations. print currentyear + "/" + currentmonth + "/" + currentday. 21 Sep 2011 The task of converting strings to date or date/time objects arises fairly often. For example, a colleague just had a request for a script to parse a.
Creating a Date-Time. There are two use cases for creati