[Quantproject-developers] QuantProject/b1_ADT/Timing Date.cs, 1.1, 1.2
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2009-03-16 22:33:47
|
Update of /cvsroot/quantproject/QuantProject/b1_ADT/Timing In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv32573/b1_ADT/Timing Modified Files: Date.cs Log Message: The follwing properties have been added: public int Year public int Month public int Day The following public method has been added public Date AddDays( int days ) Index: Date.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b1_ADT/Timing/Date.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Date.cs 20 Nov 2008 20:26:01 -0000 1.1 --- Date.cs 16 Mar 2009 22:33:36 -0000 1.2 *************** *** 32,35 **** --- 32,48 ---- DateTime standardDateTime; + public int Year + { + get { return this.standardDateTime.Year; } + } + public int Month + { + get { return this.standardDateTime.Month; } + } + public int Day + { + get { return this.standardDateTime.Day; } + } + // Represents a date (for any possible time) public Date( DateTime dateTime ) *************** *** 46,49 **** --- 59,69 ---- new DateTime( year , month , day , 0 , 0 , 0 ); } + + public Date AddDays( int days ) + { + DateTime standardDateTimeForResult = this.standardDateTime.AddDays( days ); + Date date = new Date( standardDateTimeForResult ); + return date; + } |