System.DateTimeExtensions.DateDiffInSeconds C# (CSharp) Méthode

DateDiffInSeconds() private méthode

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