[Quantproject-developers] QuantProject/b4_Business/a05_Timing EndOfDayDateTime.cs,1.1,1.2
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2004-12-20 00:25:26
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a05_Timing In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30744/b4_Business/a05_Timing Modified Files: EndOfDayDateTime.cs Log Message: The Copy method has been added Index: EndOfDayDateTime.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a05_Timing/EndOfDayDateTime.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** EndOfDayDateTime.cs 29 Nov 2004 14:38:17 -0000 1.1 --- EndOfDayDateTime.cs 20 Dec 2004 00:25:12 -0000 1.2 *************** *** 92,95 **** --- 92,105 ---- return returnValue; } + /// <summary> + /// Returns a deep copy of the current instance + /// </summary> + /// <returns></returns> + public EndOfDayDateTime Copy() + { + return new EndOfDayDateTime( + new DateTime( this.dateTime.Year , this.dateTime.Month , this.dateTime.Day ) , + this.endOfDaySpecificTime ); + } #region MoveNext private EndOfDaySpecificTime getNextSpecificTime( ) |