[Scipy-svn] r3221 - trunk/Lib/sandbox/timeseries/src

scipy-svn@scip... scipy-svn@scip...
Sun Aug 5 09:51:01 CDT 2007


Author: mattknox_ca
Date: 2007-08-05 09:50:56 -0500 (Sun, 05 Aug 2007)
New Revision: 3221

Modified:
   trunk/Lib/sandbox/timeseries/src/c_tdates.c
Log:
changed date properties to show end of period values for time data for lower frequencies (eg. the "hour" for an annual date will be 23 and the "minute" will be 59, etc...). This is more consistent with the rest of the date module

Modified: trunk/Lib/sandbox/timeseries/src/c_tdates.c
===================================================================
--- trunk/Lib/sandbox/timeseries/src/c_tdates.c	2007-08-01 17:07:49 UTC (rev 3220)
+++ trunk/Lib/sandbox/timeseries/src/c_tdates.c	2007-08-05 14:50:56 UTC (rev 3221)
@@ -1033,7 +1033,7 @@
             periodsPerDay = 24*60*60;
             break;
         default:
-            return 0;
+            return 24*60*60 - 1;
     }
 
     startOfDay = asfreq_DtoHIGHFREQ(dailyDate, 'B', periodsPerDay);



More information about the Scipy-svn mailing list