2.8 Shifts, Shift Patterns and Calendars

Working time is described using shifts and shift patterns.

A shift is a period of working time within a day, defined by a start and a finish day time. If the finish time is at or before the start time, the shift finishes on the following day; for example a shift from 22:00 to 06:00 is a night shift.

A shift pattern is a repeating cycle of days. For each day of the cycle it lists the shifts worked on that day, separated by plus signs (+); OFF (or nothing) means that the day is not worked. The days are separated by commas. For example, the pattern

DAY+EVE, DAY+EVE, DAY+EVE, DAY+EVE, DAY+EVE, OFF, OFF

is a seven-day cycle in which the DAY and EVE shifts are worked on the first five days and nothing is worked on the last two. Each pattern has a pattern start date on which the first day of the cycle falls. The cycle may be of any length; for example a 14-day cycle can describe a fortnightly roster.

Shift patterns are used as the calendar of a resource and as the roster of a member of staff. Overlapping or adjacent shifts on the same day are merged.