summaryrefslogtreecommitdiffstats
path: root/src/util.rs
AgeCommit message (Collapse)Author
2024-02-09Bump edition to 2021 and introduce rustfmtPro
2024-02-09CleanupPro
2017-11-24Optimize implementationMatthias Beyer
Change the implementation from O(n) to O(1).
2017-09-27Hand-write month-adjusting in add adjusting algorithmMatthias Beyer
Because we do not have a `>=` comparison operator here, but a `>`.
2017-09-27Do not write month adjusting with macro, but hand-craftMatthias Beyer
This fixes a bug: The month gets adjusted here, which invalidates the result of the get_num_of_days_in_month() call,... so we must call it again and again while adjusting here.
2017-09-16Add test for get_num_of_days_in_month()Matthias Beyer
2017-09-16Use get_num_of_days_in_month() for adjustingMatthias Beyer
2017-09-16Remove printlnsMatthias Beyer
2017-09-16Move utility functions to util packageMatthias Beyer
2017-09-16Add end-of-month type/calcMatthias Beyer
Adds util module