Skip to content

@eightkk/vue-weave / core / buildWorkPeriods

Function: buildWorkPeriods() ​

buildWorkPeriods(range, week): TimeRange[]

Defined in: src/core/workCalendar.ts:98

Build epoch-millisecond periods for a weekly calendar in a fixed UTC offset or an IANA time zone. With timeZone, shift minutes are local wall-clock times: a shift that crosses a daylight-saving transition gains or loses the difference.

Parameters ​

range ​

TimeRange

week ​

WorkWeek

Returns ​

TimeRange[]

Released under the MIT License.