[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py eye-friendly datetime representation

Andreas Jung andreas at andreas-jung.com
Fri Apr 29 06:01:19 EDT 2005


Log message for revision 30218:
  eye-friendly datetime representation
  

Changed:
  U   Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py

-=-
Modified: Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py
===================================================================
--- Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py	2005-04-28 23:50:46 UTC (rev 30217)
+++ Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py	2005-04-29 10:01:19 UTC (rev 30218)
@@ -81,7 +81,7 @@
                 seconds_to_go  = seconds_so_far / current * (self._max - current)
                 self.output('%d/%d (%.2f%%) Estimated termination: %s' % \
                 (current, self._max, (100.0 * current / self._max), 
-                 DateTime(time.time() + seconds_to_go)))
+                 DateTime(time.time() + seconds_to_go).strftime('%Y/%m/%d %H:%M:%Sh')))
 
     def output(self, text):
         print >>self.fp, '%s: %s' % (self._ident, text)



More information about the Zope-Checkins mailing list