Design
Position
novolis-time is an orthogonal island. It is not on the Math → Physics → Simulation → Gaming → Avalonia spine. It has no Avalonia, MAUI, Simulation, or payroll dependency.
Novolis.Time
├── Novolis.Time.Week
├── Novolis.Time.Month
└── Novolis.Time.Workday
└── Novolis.Time.Worktime
└── Novolis.Time.Worktime.LegalHoliday generation is a private tool (tools/GeneratePublicHolidays). It may reference the third-party PublicHoliday package and Novolis.CodeGen.Reflection.Dump. Runtime assemblies consume only the C# calendar baselines committed in Novolis.Time.Workday. Those baselines are defaults: sparse configuration overrides one date and leaves the rest.
Packages
| Package | Role |
|---|---|
Novolis.Time | ClockInterval: same-day local ranges, duration, containment, and overlap |
Novolis.Time.Week | WeekModel, WeekKey, WeekRange, WeeklyPattern<T>, WeekCycle<T>, WeekBasedCalendar<T> |
Novolis.Time.Month | MonthModel, MonthKey, MonthRange, MonthlyPattern<T>, MonthCycle<T>, MonthBasedCalendar<T> |
Novolis.Time.Workday | Calendar, IWorkdayCalendar, WorkdayCalendar, BusinessDayCalculator, in-code holiday baselines |
Novolis.Time.Worktime | Expected snapshots, actual records, day balance, and flex normalization |
Novolis.Time.Worktime.Legal | Versioned rule messages. The adopting product supplies its own presets |
Workday and worktime public APIs see only IWorkdayCalendar. They are not a general calendar.
Goals
- Immutable values a product can store and explain later
- Workday decisions that keep source metadata (data set, version, country)
- Week-based schedules whose missing days are silence, not a reset
- Worktime math that separates expected time, actual time, flex, and financial-compensation duration
- Legal values that stay in
LegalReviewState.Draftuntil the adopting organisation marks them reviewed
Non-goals
- Money, payroll, tax, or leave balances
- Overnight clock intervals
- Calling a holiday web service or the third-party holiday library at runtime
- Treating a draft legal preset as permission to enforce a rule
- Shipping a product's workplace, agreement, or country preset catalog
- UI, storage, or Avalonia types
Consumers
Products compose these packages at the app layer. They own persistence, identity, workplace presets, and any payment rules. A generated calendar is a baseline they can override date by date.