Skip to content
On this page

Interval

An enum that represents a date/time interval boundary used when comparing date(time)s.

Syntax

ts
import { Interval } from 'ts-dax'

Values

  • SECOND
  • MINUTE
  • HOUR
  • DAY
  • WEEK
  • MONTH
  • YEAR

Examples

See dateDiff() for an example of a function that accepts an Interval as a parameter.

Released under the MIT License. Not affiliated with Microsoft.