Update of /cvsroot/quantproject/QuantProject/b4_Business/a05_Timing
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv13374/b4_Business/a05_Timing
Modified Files:
IndexBasedEndOfDayTimer.cs
Log Message:
Added method GetPreviousDateTime
Index: IndexBasedEndOfDayTimer.cs
===================================================================
RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a05_Timing/IndexBasedEndOfDayTimer.cs,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** IndexBasedEndOfDayTimer.cs 14 May 2006 18:23:38 -0000 1.8
--- IndexBasedEndOfDayTimer.cs 14 Jan 2008 23:21:03 -0000 1.9
***************
*** 120,123 ****
--- 120,132 ----
return this.indexQuotes.GetPrecedingDate(this.currentTime.DateTime,1);
}
+ /// <summary>
+ /// Gets the date time that is 'precedingDays' days before
+ /// the current date time of the current timer
+ /// </summary>
+ public DateTime GetPreviousDateTime(int precedingDays)
+ {
+ return this.indexQuotes.GetPrecedingDate(
+ this.currentTime.DateTime,precedingDays);
+ }
}
|