Skip to main content
Define your organization’s weekend boundaries for rules that reference idle weekends, such as WEEKENDS_IDLE counters.

Why Define Weekends?

Different industries and regions have varying definitions of “weekend”:
  • Standard: Friday evening to Sunday night
  • Retail/Hospitality: Saturday morning to Monday morning
  • Healthcare: 36-hour blocks with specific start times

Basic Weekend Definition

Set the weekend boundaries in the options.idleWeekend object:
A weekend is considered “idle” if the employee has no shifts during the entire defined window.

Weekend Properties

fromDayOfWeek
string
required
Day when the weekend starts: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY
fromTime
string
required
Time when the weekend starts (HH:mm:ss format)
toDayOfWeek
string
required
Day when the weekend ends
toTime
string
required
Time when the weekend ends (HH:mm:ss format)

Common Weekend Configurations

Friday 7 PM to Sunday 11 PM:

Using Weekend Rules

Once defined, use weekend constraints in rules:
Each employee gets at least 2 completely free weekends in January.