System.DateTimeExtensions.DateDiffInSeconds C# (CSharp) Метод

DateDiffInSeconds() приватный Метод

private DateDiffInSeconds ( this date, System.DateTime otherDate ) : int
date this
otherDate System.DateTime
Результат int
		public static int DateDiffInSeconds(this DateTime? date, DateTime? otherDate)
		{
			return (int) (otherDate - date).GetValueOrDefault().TotalSeconds;
		}