diff options
-rwxr-xr-x | src/time.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/time.cpp b/src/time.cpp index 9cf7802..c9609ad 100755 --- a/src/time.cpp +++ b/src/time.cpp @@ -129,7 +129,8 @@ workday::workday(const moment& previous_wrap, planned_wrap = planned_wraptime; timeblock initial_block{call, std::max( - // Paragraph 6.7 says that up to 2 hours of unused warned overtime counts as worktime, though so that at least one hour of the unused overtime is not counted. + // Paragraph 6.7 says that up to 2 hours of unused warned overtime counts as worktime, + // though so that at least one hour of the unused overtime is not counted. // (It's unclear if an 8-hour day that ends 3 hours in counts as having 5 hours of unused overtime) std::clamp(planned_wrap-(delta){0, 1, 0}, wraptime, planned_wraptime+(delta){0, 2, 0}), call+(delta){0, 4, 0})}; @@ -319,7 +320,8 @@ bool moment::isEaster() { moment gaussEaster(int year) { // Thanks to Carl Friedrich Gauss for the algorythm - // Thanks rahulhegde97, bansal_rtk_, code_hunt, sanjoy_62, simranarora5sos and aashutoshparoha on GeeksForGeeks for the implementation I based this on. + // Thanks rahulhegde97, bansal_rtk_, code_hunt, sanjoy_62, simranarora5sos + // and aashutoshparoha on GeeksForGeeks for the implementation I based this on. float A, B, C, P, Q, M, N, D, E; int easter_month = 0; int easter_day = 0; |