Skip to content

Weekend night premium

The rule

Night hours are paid more at the weekend: the hours worked between 22:00 and 06:00 on the wall clock that fall on a Saturday or a Sunday are paid at the weekend night rate. A shift from Friday 22:00 to Saturday 06:00 has 6 weekend night hours (Saturday’s) and 2 weekday ones; a shift from Sunday 22:00 to Monday 06:00 has 2 (Sunday’s).

Who uses it

Hospitals, care homes, security, warehouses and plants that run around the clock, where a contract pays nights and weekends more and the weekend’s nights most.

How the recipe does it

Configuration only: a package (package.toml) of one layer running the standard window_premium step on one period, the weekend’s nights:

[[layer]]
id = "weekend-nights"
[[layer.step]]
id = "weekend-nights"
uses = "standard/window_premium"
params = { during = { all = [{ weekdays = ["sat", "sun"] }, { daily = { from = "22:00", to = "06:00" } }] }, category = "weekend_night" }

during is a period made of two: all holds the instants both hold, the whole Saturdays and Sundays and each day’s hours from 22:00 to 06:00. A day is midnight to midnight, and 22:00 to 06:00 is wall time, in the person’s zone: the night the clocks go back is an hour longer, the night they go forward an hour shorter. window_premium moves the time of each workday’s worked lines inside the period to weekend_night, cutting a line at the exact instants the period starts and finishes. Each shift stays the workday it starts in; only its hours move.

weekend_night is a category of its own, worked and paid. A night differential for every night (night_differential) before this step counts as worked time it moves on, unless this step’s counts is ["work"]; choose the order and counts your pay rules call for.

Parameters

ParameterMeaning
duringThe weekend’s nights: { all = [{ weekdays = ["sat", "sun"] }, { daily = { from = "22:00", to = "06:00" } }] }.
categoryWhere weekend night time goes.
countsThe categories moved (default: every worked one).

What the scenarios show

  • the-weekend-the-clocks-go-back: on the weekend of November 1, 2026 in Chicago, Friday’s night has 6 weekend night hours, Saturday’s night is 9 hours worked and all of them weekend night, Sunday’s night has 2.
  • the-weekend-the-clocks-go-forward: on the weekend of March 8, 2026, Saturday’s night is 7 hours worked, all weekend night; a Wednesday night has none.

This is a common way companies implement a weekend night premium; check the rules where you operate. The hours, the days and the rate come from a contract or company policy.

Get the recipe

The recipe’s package and its scenarios are in the example packages repository: attendance/weekend_night_premium. Test it, or your own copy of it, with hourctl attend test, and publish it with hourctl attend pkg publish.

The policy package

The package’s layers, with the standard steps each one runs and their settings:

weekend_night_premium/package.toml
name = "weekend_night_premium"
version = "1.0.0"
description = "Time worked at night on a Saturday or a Sunday, between 22:00 and 06:00 on the wall clock, is paid in a weekend night category, across midnight and changes of the clocks."
# The weekend's nights: the hours from 22:00 to 06:00 that fall on a
# Saturday or a Sunday, as one period, go to weekend_night.
[[layer]]
id = "weekend-nights"
[[layer.step]]
id = "weekend-nights"
uses = "standard/window_premium"
params = { during = { all = [{ weekdays = ["sat", "sun"] }, { daily = { from = "22:00", to = "06:00" } }] }, category = "weekend_night" }

Scenarios

Each scenario gives a person’s punches and setup and the timecard they must produce, worked out with this package adopted (the format).

On the weekend of November 1, 2026, Chicago's clocks go back from 02:00 to 01:00 on the Sunday. Friday 22:00 to Saturday 06:00 has 6 weekend night hours, Saturday's; Saturday 22:00 to Sunday 06:00 is 9 hours worked, all weekend night (the night is an hour longer); Sunday 22:00 to Monday 06:00 has 2, Sunday's. Each shift stays the workday it starts in
scenarios/the-weekend-the-clocks-go-back.toml
description = "On the weekend of November 1, 2026, Chicago's clocks go back from 02:00 to 01:00 on the Sunday. Friday 22:00 to Saturday 06:00 has 6 weekend night hours, Saturday's; Saturday 22:00 to Sunday 06:00 is 9 hours worked, all weekend night (the night is an hour longer); Sunday 22:00 to Monday 06:00 has 2, Sunday's. Each shift stays the workday it starts in"
punch = [
{ at = "2026-10-30 22:00", kind = "in" }, { at = "2026-10-31 06:00", kind = "out" },
{ at = "2026-10-31 22:00", kind = "in" }, { at = "2026-11-01 06:00", kind = "out" },
{ at = "2026-11-01 22:00", kind = "in" }, { at = "2026-11-02 06:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
[expect]
week = "2026-10-26"
days = { "2026-10-30" = "8h", "2026-10-31" = "9h", "2026-11-01" = "8h" }
allocations = [
"2026-10-30 22:00-2026-10-31 00:00 work 2.00",
"2026-10-31 00:00-06:00 weekend_night 6.00",
"2026-10-31 22:00-2026-11-01 06:00 weekend_night 9.00",
"2026-11-01 22:00-2026-11-02 00:00 weekend_night 2.00",
"2026-11-02 00:00-06:00 work 6.00",
]
On the weekend of March 8, 2026, Chicago's clocks go forward from 02:00 to 03:00 on the Sunday. Saturday 22:00 to Sunday 06:00 is 7 hours worked, all weekend night (the night is an hour shorter). Wednesday 22:00 to Thursday 06:00 is a weekday night: no weekend night time
scenarios/the-weekend-the-clocks-go-forward.toml
description = "On the weekend of March 8, 2026, Chicago's clocks go forward from 02:00 to 03:00 on the Sunday. Saturday 22:00 to Sunday 06:00 is 7 hours worked, all weekend night (the night is an hour shorter). Wednesday 22:00 to Thursday 06:00 is a weekday night: no weekend night time"
punch = [
{ at = "2026-03-04 22:00", kind = "in" }, { at = "2026-03-05 06:00", kind = "out" },
{ at = "2026-03-07 22:00", kind = "in" }, { at = "2026-03-08 06:00", kind = "out" },
]
[policy]
zone = "America/Chicago"
[expect]
week = "2026-03-02"
days = { "2026-03-04" = "8h", "2026-03-07" = "7h" }
allocations = [
"2026-03-04 22:00-2026-03-05 06:00 work 8.00",
"2026-03-07 22:00-2026-03-08 06:00 weekend_night 7.00",
]