Changeset 136
- Timestamp:
- 04/29/08 04:58:11 (2 months ago)
- Files:
-
- trunk/QLNet/QLNet/QLNet.csproj (modified) (1 diff)
- trunk/QLNet/QLNet/Termstructures/DefaultProbabilityTermStructure.cs (added)
- trunk/QLNet/QLNet/Termstructures/InflationTermStructure.cs (added)
- trunk/QLNet/QLNet/Time/Calendar.cs (modified) (2 diffs)
- trunk/QLNet/QLNet/Time/Date.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/QLNet/QLNet/QLNet.csproj
r133 r136 233 233 <Compile Include="Termstructures\Bootstraperror.cs" /> 234 234 <Compile Include="Termstructures\Bootstraphelper.cs" /> 235 <Compile Include="Termstructures\DefaultProbabilityTermStructure.cs" /> 236 <Compile Include="Termstructures\InflationTermStructure.cs" /> 235 237 <Compile Include="Termstructures\Iterativebootstrap.cs" /> 236 238 <Compile Include="Termstructures\TermStructure.cs" /> trunk/QLNet/QLNet/Time/Calendar.cs
r129 r136 2 2 Copyright (C) 2008 Siarhei Novik (snovik@gmail.com) 3 3 Copyright (C) 2008 Andrea Maggiulli 4 4 Copyright (C) 2008 Toyin Akin (toyin_akin@hotmail.com) 5 5 6 This file is part of QLNet Project http://www.qlnet.org 6 7 … … 107 108 /// last business day of the month to which the given date belongs 108 109 /// </summary> 109 public Date endOfMonth(Date d) { return adjust( d.endOfMonth(d), BusinessDayConvention.Preceding); }110 public Date endOfMonth(Date d) { return adjust(Date.endOfMonth(d), BusinessDayConvention.Preceding); } 110 111 111 112 /// <summary> trunk/QLNet/QLNet/Time/Date.cs
r93 r136 1 1 /* 2 2 Copyright (C) 2008 Siarhei Novik (snovik@gmail.com) 3 3 Copyright (C) 2008 Toyin Akin (toyin_akin@hotmail.com) 4 4 5 This file is part of QLNet Project http://www.qlnet.org 5 6 … … 99 100 return (MonthOffset[m - 1] + ((leapYear && m > 1) ? 1 : 0)); 100 101 } 101 public Date endOfMonth(Date d)102 public static Date endOfMonth(Date d) 102 103 { 103 104 return (d - d.Day + DaysInMonth(d.Year, d.Month));