internal int GetDayOfYear([Trusted] YearMonthDay yearMonthDay) { DebugValidateYearMonthDay(yearMonthDay); return(YearMonthDayCalculator.GetDayOfYear(yearMonthDay)); }
/// <summary> /// Returns the number of days since the Unix epoch (1970-01-01 ISO) for the given date. /// </summary> internal int GetDaysSinceEpoch([Trusted] YearMonthDay yearMonthDay) { DebugValidateYearMonthDay(yearMonthDay); return(YearMonthDayCalculator.GetDaysSinceEpoch(yearMonthDay)); }
internal int Compare([Trusted] YearMonthDay lhs, [Trusted] YearMonthDay rhs) { DebugValidateYearMonthDay(lhs); DebugValidateYearMonthDay(rhs); return(YearMonthDayCalculator.Compare(lhs, rhs)); }
internal void DebugValidateYearMonthDay(YearMonthDay yearMonthDay) { ValidateYearMonthDay(yearMonthDay.Year, yearMonthDay.Month, yearMonthDay.Day); }