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