DateDiff
class DateDiff @InternalWowApi constructor(val from: QueryField<*>, val to: QueryField<*>, val unit: DateDiffUnit) : AggregationExpression
The elapsed time from the instant in from to the instant in to, to − from, in unit as a decimal: negative when to is earlier, and no contribution when either instant is absent. Both fields must be single-valued temporal fields; each is read in its own temporal encoding.
Functions
Link copied to clipboard
fun copy(from: QueryField<*> = this.from, to: QueryField<*> = this.to, unit: DateDiffUnit = this.unit): AggregationExpression.DateDiff
This DateDiff with the given values replaced; for Wow's own query rewriting.