Author: rob
Date: 2009-03-17 21:07:48 -0400 (Tue, 17 Mar 2009)
New Revision: 23335
Modified:
topp.utils/trunk/topp/utils/pretty_date.py
Log:
change the formatting of the returned time
Modified: topp.utils/trunk/topp/utils/pretty_date.py
===================================================================
--- topp.utils/trunk/topp/utils/pretty_date.py 2009-03-18 01:06:32 UTC (rev
23334)
+++ topp.utils/trunk/topp/utils/pretty_date.py 2009-03-18 01:07:48 UTC (rev
23335)
@@ -50,7 +50,10 @@
def prettystr(self, include_time=False):
datestr = self._prettystr_date()
if include_time:
- datestr = '%s %s' % (datestr, self.date.strftime('%X'))
+ timestr = self.date.strftime('%I:%M%p')
+ if timestr.startswith('0'):
+ timestr = timestr[1:]
+ datestr = '%s %s' % (datestr, timestr)
return datestr
def _prettystr_date(self):
--
To unsubscribe send an email with subject "unsubscribe" to
[email protected]. Please contact
[email protected] for questions.