Rock.ExtensionMethods.TotalMonths C# (CSharp) Метод

TotalMonths() публичный статический Метод

The total months.
public static TotalMonths ( this end, System.DateTime start ) : int
end this The end.
start System.DateTime The start.
Результат int
        public static int TotalMonths( this DateTime end, DateTime start )
        {
            return ( end.Year * 12 + end.Month ) - ( start.Year * 12 + start.Month );
        }