//
-// PersianCalendar.cs: Implements the Persian calendar
+// System.Globalization.PersianCalendar.cs
//
// Authors:
// Roozbeh Pournader (roozbeh@farsiweb.info)
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
-
namespace System.Globalization {
using System;
/// on the mean tropical year, not the mean March equinoctial year.
/// </para>
/// </remarks>
-#if NET_2_0
[Serializable]
-#endif
public class PersianCalendar : Calendar {
/// <summary>
/// Constructor.
return PersianEra;
}
-#if NET_2_0
public override int GetLeapMonth (int year, int era)
{
return 0;
}
-#endif
/// <summary>
/// Overridden. Gives the number of the month of the specified
/// </exception>
public override DateTime ToDateTime(int year, int month, int day,
int hour, int minute,
- int second, int milliseconds,
+ int second, int millisecond,
int era)
{
M_CheckYMDE(year, month, day, ref era);
- M_CheckHMSM(hour, minute, second, milliseconds);
+ M_CheckHMSM(hour, minute, second, millisecond);
int rd = fixed_from_dmy(day, month, year);
return CCFixed.ToDateTime(rd,
- hour, minute, second, milliseconds);
+ hour, minute, second, millisecond);
}
// FIXME: Calendar.cs and HebrewCalendar.cs are different in
return baseCentury + year - 100;
}
-#if NET_2_0
public override CalendarAlgorithmType AlgorithmType {
get {
return CalendarAlgorithmType.SolarCalendar;
return PersianMax;
}
}
-#endif
} // class PersianCalendar
} // namespace System.Globalization
-
-#endif