Skip to main content
function maxHoursPerDay(hours, opts?): RuleEntry<"max-hours-day", object & RuleOptions>;
Limits hours per day.

Parameters

hours
number
required

Returns

RuleEntry<"max-hours-day", object & RuleOptions> Use this when the requirements or operating constraints explicitly impose a daily hours cap. Do not infer it just from the chosen shift pattern lengths.