timestampDiff method

FunctionExpression timestampDiff(
  1. Object start,
  2. Object unit
)

The number of whole units from start (a field name or an expression) to this timestamp.

Implementation

FunctionExpression timestampDiff(Object start, Object unit) =>
    FunctionExpression('timestamp_diff', <Object?>[
      this,
      fieldOrExpression(start),
      unit,
    ]);