open-nav
    Preparing search index...

    Function chunkDateRange

    • Split a date range into windows NAV will accept.

      Inclusive at both ends, so a 35 day window spans dateFrom to dateFrom + 34 days: NAV compares the two dates given, and 35 days apart is already over the line.

      Parameters

      • dateFrom: string
      • dateTo: string
      • maxDays: number = MAX_QUERY_DAYS

      Returns DateWindow[]