Skip to main content

Module cycle

Module cycle 

Source
Expand description

Default constants and the standard 42-day shift cycle.

These constants are shared with the Android (Kotlin) and Flutter (Dart) reference implementations. Changing them here changes all platforms.

Constants§

DEFAULT_CYCLE_LENGTH
Default cycle length: 42 days.
DEFAULT_TOTAL_TEAMS
Total number of teams sharing the cycle.

Functions§

default_config
Creates a ShiftCycleConfig with all default values.
default_reference_date
Returns the reference date: 2025-12-15.
default_shift_cycle
Returns the default 42-day shift cycle.