Icon SubtractDateTimeFromDateTimeAsDayTime Method

function SubtractDateTimeFromDateTimeAsDayTime(FirstValue:
      TDateTime; SecondValue: TDateTime; DayTimeIntervalType:
      TEDBDayTimeIntervalType): TEDBDayTimeInterval

Call the SubtractDateTimeFromDateTimeAsDayTime method to subtract a date-time value from another date-time value, returning the result as a day-time interval.

Information In ElevateDB, day-time intervals are Int64 values that represent the number of milliseconds that have elapsed between two points in time. Use the TEDBEngine DayTimeIntervalToSQLStr method to convert a day-time interval into a readable string.
Image