diff options
author | SanJacobs | 2022-07-12 03:22:40 +0200 |
---|---|---|
committer | SanJacobs | 2022-07-12 03:22:40 +0200 |
commit | a3900c0419c7f3bb3d47834376b610008d6554cf (patch) | |
tree | 40932bce85930518dc09488af613d35d9f7717a0 /src/time.cpp | |
parent | 55adec80ffefd9a1090209cfe6298ff850dedfc4 (diff) | |
download | satscalc-a3900c0419c7f3bb3d47834376b610008d6554cf.tar.gz satscalc-a3900c0419c7f3bb3d47834376b610008d6554cf.tar.bz2 satscalc-a3900c0419c7f3bb3d47834376b610008d6554cf.zip |
Workdays split into price segments in constructor
Diffstat (limited to 'src/time.cpp')
-rwxr-xr-x | src/time.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/time.cpp b/src/time.cpp index 3e65b45..37c0f5f 100755 --- a/src/time.cpp +++ b/src/time.cpp @@ -1,8 +1,9 @@ #include "time.h" // Look. listen here. There's no way I'm going to start taking DST into account. -// I have to draw the line somewhere, and frankly, once you start doing "Change an hour on the 4th moon of the 2nd week of March in France, but only if the tulips haven't sprung... etc... etc.." I'm out. -// The fact that DST is designed this way, though, makes it so you are unlikely to be on the clock during a DST transition. +// DST transition times are decided using skull dice, by the grand wizards of the state. +// The fact that DST is designed this way, though, +// makes it so you are unlikely to be on the clock during a DST transition. // @@ -156,6 +157,8 @@ workday::workday(const moment& previous_wrap, } } + blocks[j++] = initial_block; + total_timeblocks = j; } |