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.

Constructors

Link copied to clipboard
constructor(from: QueryField<*>, to: QueryField<*>, unit: DateDiffUnit)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val to: QueryField<*>
Link copied to clipboard

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.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String