Crates.io | cal-calc |
lib.rs | cal-calc |
version | 0.2.0 |
source | src |
created_at | 2022-04-18 12:24:59.480064 |
updated_at | 2023-02-24 17:53:37.353646 |
description | Simple tool for calculating holidays based on a set of holiday rules |
homepage | |
repository | https://github.com/xemwebe/cal-calc |
max_upload_size | |
id | 569843 |
size | 54,639 |
Purpose of this library is to provide a tool for calculating holidays for a given time period based on a set of rules.
The following rules are supported:
This examples demonstrates using the library to calculate the UK settlement calendar, which is particular interesting because of its complex holiday rules, e.g. last Monday of August (Summer bank holiday), fixed day holidays that are moved to the next working day if the holiday falls on a weekend, or singular holidays which are not repeated every year, but celebrate unique events like a royal wedding.