[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43677: 27.1; Calc holidays off-by-one error, incorrect business day
From: |
Robert Pluim |
Subject: |
bug#43677: 27.1; Calc holidays off-by-one error, incorrect business day calculation |
Date: |
Wed, 30 Sep 2020 10:55:10 +0200 |
>>>>> On Wed, 30 Sep 2020 04:50:25 +0200, Lars Ingebrigtsen <larsi@gnus.org>
>>>>> said:
Lars> Indeed -- applying the following patch (which numbers Monday as 0 and
Lars> Sunday as 6) makes the test case work correctly for me. But trying to
Lars> follow the code makes it unclear... er... what's going on, and there
Lars> aren't many comments in the Calc code to explain what they were
Lars> thinking.
Lars> I wondered whether this might be a US/non-US thing (with a difference
in
Lars> what day starts the week), but I couldn't really find anything in calc
Lars> talking about that...
Lars> Does anybody have any insight here?
Sunday is the first day of the week in the US and in France (and
others, probably). Monday is the first *business* day of the week,
which I think is what's important here.
Robert
--
- bug#43677: 27.1; Calc holidays off-by-one error, incorrect business day calculation, Aaron Zeng, 2020/09/28
- bug#43677: 27.1; Calc holidays off-by-one error, incorrect business day calculation, Lars Ingebrigtsen, 2020/09/29
- bug#43677: 27.1; Calc holidays off-by-one error, incorrect business day calculation,
Robert Pluim <=
- bug#43677: 27.1; Calc holidays off-by-one error, incorrect business day calculation, Mattias EngdegÄrd, 2020/09/30
- bug#43677: 27.1; Calc holidays off-by-one error, incorrect business day calculation, Mattias EngdegÄrd, 2020/09/30
- bug#43677: 27.1; Calc holidays off-by-one error, incorrect business day calculation, Lars Ingebrigtsen, 2020/09/30