timestampTruncate method

FunctionExpression timestampTruncate(
  1. Object granularity, [
  2. Object? timezone
])

This timestamp truncated to granularity (for example 'day'), optionally in timezone.

Implementation

FunctionExpression timestampTruncate(
  Object granularity, [
  Object? timezone,
]) => _function('timestamp_trunc', <Object?>[granularity, ?timezone]);