[Scipy-svn] r2871 - trunk/Lib/sandbox/timeseries
scipy-svn at scipy.org
scipy-svn at scipy.org
Mon Mar 26 11:40:36 EDT 2007
Author: mattknox_ca
Date: 2007-03-26 10:40:30 -0500 (Mon, 26 Mar 2007)
New Revision: 2871
Modified:
trunk/Lib/sandbox/timeseries/tdates.py
Log:
updated documentation for prevbusday function
Modified: trunk/Lib/sandbox/timeseries/tdates.py
===================================================================
--- trunk/Lib/sandbox/timeseries/tdates.py 2007-03-26 15:11:46 UTC (rev 2870)
+++ trunk/Lib/sandbox/timeseries/tdates.py 2007-03-26 15:40:30 UTC (rev 2871)
@@ -91,7 +91,17 @@
#####---------------------------------------------------------------------------
def prevbusday(day_end_hour=18, day_end_min=0):
- "Returns the previous business day."
+ """Returns the previous business day (Monday-Friday) at business frequency.
+
+:Parameters:
+ - day_end_hour : (int, *[18]* )
+ - day_end_min : (int, *[0]*)
+
+:Return values:
+ If it is currently Saturday or Sunday, then the preceding Friday will be
+ returned. If it is later than the specified day_end_hour and day_end_min,
+ thisday('b') will be returned. Otherwise, thisday('b')-1 will be returned.
+"""
tempDate = dt.datetime.now()
dateNum = tempDate.hour + float(tempDate.minute)/60
checkNum = day_end_hour + float(day_end_min)/60
More information about the Scipy-svn
mailing list