Skip to content

Holidays on a weekend, observed on a weekday

The rule

A holiday that falls on a weekend is observed on a working day instead: commonly a Saturday one on the Friday before and a Sunday one on the Monday after. Some employers never move a Saturday holiday (it is simply lost), some move both to the Monday after.

Who uses it

Every employer with a holiday calendar has to say this, and it differs: the federal calendar moves Saturday to Friday and Sunday to Monday; many retail and manufacturing employers do not observe Saturday holidays; a union contract may say Monday for both. The holiday list ([[holiday]], shared by everyone in an organization) says when a holiday falls; this step says, per policy, where it is observed, so one list serves plants with different contracts.

How the recipe does it

Configuration only: a package (package.toml) of one layer. The standard observe step, in the holiday stage, moves a Saturday holiday to the Friday before and a Sunday one to the Monday after; the standard holiday_pay step pays 8 hours on the day observed.

[[layer]]
id = "holidays"
[[layer.step]]
id = "observe"
uses = "standard/observe"
params = { saturday = "friday", sunday = "monday" }
[[layer.step]]
id = "holiday"
uses = "standard/holiday_pay"
params = { time = "8h", category = "holiday" }

The holiday stage runs once a ledger, before anything else: its step asks of the holidays on the days it needs (ctx:holidays(from, to): those that fall on a day from from to to, or are observed on one, each holiday, name, date, weekday, and observed, where the holiday’s own setting puts it, or a step before it) and moves one with ctx:observe(id, date, why), or takes it off with a date of nil. It declares nothing: the days it asked about are what the ledger keeps as looked at, so a holiday put or moved on one of them works the ledger out again, and one on any other day does not. A step that moves a holiday up to two days asks of the days two either side of the calendar’s (ctx.window), as observe does. The calendar every later step reads (ctx:day(date).holidays), and so holiday pay and no-show rules, shows the holidays where the step put them.

Parameters

ParameterMeaning
saturdayWhere a Saturday holiday is observed: "friday", "monday", "as_is" or "none". Not given: as the holiday’s own observed.
sundayThe same for a Sunday holiday.
holidaysThe holiday ids the step moves (default every one).

What the scenarios show

  • saturday-to-friday-sunday-to-monday: Independence Day 2026 (a Saturday) pays on Friday the 3rd, and 2027’s (a Sunday) on Monday the 5th, though the holiday itself is set up as observed on the day.
  • a-saturday-holiday-is-not-observed: with saturday = "none" for Independence Day only, 2026’s pays nothing; Christmas 2027, a Saturday the step does not name, keeps its own setting and is observed on the 24th.

This is a common way companies implement weekend holidays; check the rules where you operate and any contract that applies. Public holiday laws in some places set the day off themselves.

Get the recipe

The recipe’s package and its scenarios are in the example packages repository: attendance/holiday_observance. 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:

holiday_observance/package.toml
name = "holiday_observance"
version = "1.0.0"
description = "Which day a holiday falling on a Saturday or a Sunday is observed on (and paid), decided by the policy, not the holiday list."
# A holiday on a Saturday is observed the Friday before, one on a Sunday
# the Monday after. The day it is observed on pays 8 hours of holiday,
# which the tenant sets up as not worked.
[[layer]]
id = "holidays"
[[layer.step]]
id = "observe"
uses = "standard/observe"
params = { saturday = "friday", sunday = "monday" }
[[layer.step]]
id = "holiday"
uses = "standard/holiday_pay"
params = { time = "8h", category = "holiday" }

Scenarios

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

Some employers do not move a Saturday holiday at all: with saturday = none, Independence Day 2026, a Saturday, is no one's day off and pays nothing, while the holiday's own setting (nearest_weekday) still moves Christmas 2027, also a Saturday but not one the step names, to Friday the 24th
scenarios/a-saturday-holiday-is-not-observed.toml
description = "Some employers do not move a Saturday holiday at all: with saturday = none, Independence Day 2026, a Saturday, is no one's day off and pays nothing, while the holiday's own setting (nearest_weekday) still moves Christmas 2027, also a Saturday but not one the step names, to Friday the 24th"
[policy]
zone = "America/New_York"
# An employer that does not move Independence Day when it falls on a
# Saturday.
[[layer]]
id = "saturday-stays"
[[layer.step]]
id = "observe"
change = "replace"
uses = "standard/observe"
params = { saturday = "none", holidays = ["july4"] }
[[category]]
id = "holiday"
worked = false
[[holiday]]
id = "july4"
name = "Independence Day"
month = 7
day = 4
observed = "nearest_weekday"
[[holiday]]
id = "christmas"
name = "Christmas Day"
month = 12
day = 25
observed = "nearest_weekday"
[expect]
week = "2026-06-29"
allocations = []
[expect.period]
day = "2027-12-24"
calendar = ["2027-12-24 holiday christmas"]
allocations = ["2027-12-24 untimed holiday 8.00"]
Independence Day falls on a Saturday in 2026 and a Sunday in 2027. The holiday itself is set up as observed on the day (as_is); the policy's step observes a Saturday one on the Friday before and a Sunday one on the Monday after, so the day's holiday pay lands on a working day
scenarios/saturday-to-friday-sunday-to-monday.toml
description = "Independence Day falls on a Saturday in 2026 and a Sunday in 2027. The holiday itself is set up as observed on the day (as_is); the policy's step observes a Saturday one on the Friday before and a Sunday one on the Monday after, so the day's holiday pay lands on a working day"
[policy]
zone = "America/New_York"
[[category]]
id = "holiday"
worked = false
[[holiday]]
id = "july4"
name = "Independence Day"
month = 7
day = 4
[expect]
week = "2026-06-29"
allocations = ["2026-07-03 untimed holiday 8.00"]
[expect.period]
day = "2027-07-05"
calendar = ["2027-07-05 holiday july4"]
allocations = ["2027-07-05 untimed holiday 8.00"]