Filter plugins

Filters select the portions of worked time that qualify for an allowance. Inside a rule you can chain several filters — they are applied in sequence (AND), so each filter narrows what the previous one returned. A rule with no filters matches the entire input.

How filters work

Each filter receives a list of time ranges and returns a (possibly empty) list of time ranges that survive the rule. Filters fall into a few broad families:

  • Day filters keep entire days based on the calendar (day of the week, Danish holidays, Christian holidays, …).
  • Time-of-day filters keep the portion of each day inside a given clock window (e.g. 17:00–06:00).
  • Composite filters combine several rules at once for a specific national agreement — the Danish 17-06 inconvenience hours and Danish weekend supplement plugins fall into this category.

Available filters

Choosing the right filter

  • For “the portion of work that happens between two clock times”, use Time Interval.
  • For “the whole shift, when most of it falls inside a window”, use Time Interval Overlap.
  • For “any work on these specific weekdays”, use Day of Week, Weekday or Weekend.
  • For “any work on a public holiday”, use Danish Holidays or Christian Holidays (you can also build your own holiday set with Day of Week for fixed weekdays).
  • For Danish public-sector agreements, start with Danish Inconvenience Hours (17-06 rule) and Danish Weekend Supplement — they bundle all the special-day rules together and only need fine-tuning.