internal BasicMonthDurationField(BasicCalendarSystem calendarSystem)
     : base(DurationFieldType.Months, calendarSystem.AverageTicksPerMonth)
 {
     this.calendarSystem = calendarSystem;
     // Assumes 1-based value, and fixed number of months.
     monthsPerYear = calendarSystem.GetMaxMonth();
 }
 internal BasicMonthOfYearDateTimeField(BasicCalendarSystem calendarSystem, int leapMonth)
     : base(DateTimeFieldType.MonthOfYear, new BasicMonthDurationField(calendarSystem))
 {
     this.calendarSystem = calendarSystem;
     max = calendarSystem.GetMaxMonth();
     this.leapMonth = leapMonth;
     durationField = new BasicMonthDurationField(calendarSystem);
 }
 internal BasicYearDateTimeField(BasicCalendarSystem calendarSystem)
     : base(DateTimeFieldType.Year, new BasicYearDurationField(calendarSystem))
 {
     this.calendarSystem = calendarSystem;
     durationField = new BasicYearDurationField(calendarSystem);
 }
 internal BasicWeekOfWeekYearDateTimeField(BasicCalendarSystem calendarSystem, DurationField weeks) : base(DateTimeFieldType.WeekOfWeekYear, weeks)
 {
     this.calendarSystem = calendarSystem;
 }
Esempio n. 5
0
 internal GJEraDateTimeField(BasicCalendarSystem calendarSystem) 
     : base(DateTimeFieldType.Era, UnsupportedDurationField.Eras)
 {
     this.calendarSystem = calendarSystem;
 }
 internal GJDayOfWeekDateTimeField(BasicCalendarSystem calendarSystem, DurationField days) : base(DateTimeFieldType.DayOfWeek, days)
 {
     this.calendarSystem = calendarSystem;
 }
 internal BasicDayOfMonthDateTimeField(BasicCalendarSystem calendarSystem, DurationField days) : base(DateTimeFieldType.DayOfMonth, days)
 {
     this.calendarSystem = calendarSystem;
 }
 internal BasicYearDurationField(BasicCalendarSystem calendarSystem) : base(DurationFieldType.Years, calendarSystem.AverageTicksPerYear)
 {
     this.calendarSystem = calendarSystem;
 }
 internal GJYearOfEraDateTimeField(DateTimeField yearField, BasicCalendarSystem calendarSystem) : base(yearField, DateTimeFieldType.YearOfEra)
 {
     this.calendarSystem = calendarSystem;
 }