[Scipy-svn] r2805 - trunk/Lib/sandbox/timeseries

scipy-svn@scip... scipy-svn@scip...
Thu Mar 1 15:40:11 CST 2007


Author: mattknox_ca
Date: 2007-03-01 15:40:02 -0600 (Thu, 01 Mar 2007)
New Revision: 2805

Modified:
   trunk/Lib/sandbox/timeseries/tdates.py
Log:
changed strfmt method to call cseries.strfmt

Modified: trunk/Lib/sandbox/timeseries/tdates.py
===================================================================
--- trunk/Lib/sandbox/timeseries/tdates.py	2007-03-01 21:39:24 UTC (rev 2804)
+++ trunk/Lib/sandbox/timeseries/tdates.py	2007-03-01 21:40:02 UTC (rev 2805)
@@ -371,11 +371,7 @@
         "Formats the date"
         if fmt is None:
             fmt = self.default_fmtstr[self.freqstr]
-        qFmt = fmt.replace("%q", "XXXX")
-        tmpStr = self.datetime.strftime(qFmt)
-        if "XXXX" in tmpStr: 
-            tmpStr = tmpStr.replace("XXXX", str(self.quarter))
-        return tmpStr
+        return cseries.strfmt(self.datetime, fmt)
             
     def __str__(self):
         return self.strfmt(self.default_fmtstr[self.freqstr])



More information about the Scipy-svn mailing list