• Description

    Given a time interval (startDate, endDate), splits it in chunks of "intervalSize" * "intervalUnit" time intervals. For example, if "intervalSize" = 10 and "intervalUnit" = 'day', it will split the interval (A, D) in N intervals: [(A, B), (B, C), (C, D)], being the distance of each resulting interval (like (B, C)) of 10 days.

    Parameters

    • start: string | number | DateTime

      DateTime object or string in ISO format or timestamp in milliseconds

    • end: string | number | DateTime

      DateTime object or string in ISO format or timestamp in milliseconds

    • intervalUnit: DateTimeUnit

      The time units of each interval

    • intervalSize: number

      The number of time units of each interval @todo: Think about using luxon Interval.splitBy

    • preserveExactBounds: boolean = false

    Returns Interval[]

Generated using TypeDoc