Skip to content

calendar/calculate

  • bucketRange: Return the start instant of every unit bucket the half-open range [start, end) touches, bucketed in timeZone.
  • floorToZone: Floor an instant to the start of the unit containing it in timeZone, and return the instant of that boundary.
  • getFiscalPeriod: Return the fiscal year, period and week value falls in, for a 52/53-week retail calendar.
  • getIsoWeekDate: Return the ISO 8601 week date — week-numbering year, week and weekday — for value.
  • getOrdinalDate: Return the ISO 8601 ordinal date — calendar year and day of year — for value.
  • getQuarter: Return the quarter value falls in, as a year and a quarter number.