示例#1
0
 internal int GetDayOfYear([Trusted] YearMonthDay yearMonthDay)
 {
     DebugValidateYearMonthDay(yearMonthDay);
     return(YearMonthDayCalculator.GetDayOfYear(yearMonthDay));
 }
示例#2
0
 /// <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));
 }
示例#3
0
 internal int Compare([Trusted] YearMonthDay lhs, [Trusted] YearMonthDay rhs)
 {
     DebugValidateYearMonthDay(lhs);
     DebugValidateYearMonthDay(rhs);
     return(YearMonthDayCalculator.Compare(lhs, rhs));
 }
示例#4
0
 internal void DebugValidateYearMonthDay(YearMonthDay yearMonthDay)
 {
     ValidateYearMonthDay(yearMonthDay.Year, yearMonthDay.Month, yearMonthDay.Day);
 }