UMIS SDK
    Preparing search index...

    Function periodWindow

    • The window [start, end) of the budget period that contains at, in NumericDate seconds; end is the first second of the next period.

      • shift: blocks of shiftHours (default 8) counted from local midnight, the last block of a day ending at midnight;
      • day: local midnight to local midnight;
      • week: ISO week, Monday 00:00 to the next Monday 00:00;
      • month: calendar month;
      • operation: the single instant {start: at, end: at}.

      Local time is UTC plus utcOffsetMinutes (default 0); daylight saving time is not modelled.

      Parameters

      • per: "shift" | "day" | "week" | "month" | "operation"
      • at: number
      • Optionalopts: { shiftHours?: number; utcOffsetMinutes?: number }

      Returns PeriodWindow