System.DateTimeExtensions.DateDiffInSeconds C# (CSharp) Method

DateDiffInSeconds() private method

private DateDiffInSeconds ( this date, System.DateTime otherDate ) : int
date this
otherDate System.DateTime
return int
		public static int DateDiffInSeconds(this DateTime? date, DateTime? otherDate)
		{
			return (int) (otherDate - date).GetValueOrDefault().TotalSeconds;
		}