Argentini.Halide.H3Temporal.DateDiff C# (CSharp) Method

DateDiff() public static method

Compares 2 dates and determine the time interval between them.
public static DateDiff ( DateDiffComparisonType howtocompare, System startDate, System endDate ) : Double
howtocompare DateDiffComparisonType String specifying comparison type.
startDate System First date for comparison. If earlier than endDate, a positive result is returned.
endDate System Last date for comparison. If later than startDate, a positive result is returned.
return Double
        public static Double DateDiff(DateDiffComparisonType howtocompare, System.DateTime startDate, System.DateTime endDate)
        {
            return DateDiff(howtocompare, startDate, TimeZone.CurrentTimeZone.GetUtcOffset(startDate).Hours, endDate, TimeZone.CurrentTimeZone.GetUtcOffset(endDate).Hours);
        }

Same methods

H3Temporal::DateDiff ( DateDiffComparisonType howtocompare, System startDate, int startDateOffset, System endDate, int endDateOffset ) : Double