From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#43677: 27.1; Calc holidays off-by-one error, incorrect business day calculation Date: Fri, 2 Oct 2020 12:00:52 +0200 Message-ID: <7292DA50-23A3-4F66-9CEC-AA57E8C82FE4@acm.org> References: <0FA74B6A-DD93-41D7-91C4-ED4EB881E2DD@acm.org> <87blhn757u.fsf@gnus.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8029"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 43677-done@debbugs.gnu.org To: Aaron Zeng Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 02 12:01:45 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kOHsn-00020t-A5 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Oct 2020 12:01:45 +0200 Original-Received: from localhost ([::1]:56642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOHsm-0002rD-BS for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Oct 2020 06:01:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOHs6-0002qL-Rr for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 06:01:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56109) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOHs6-00059Q-A0 for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 06:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kOHs6-0008Im-9R for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 06:01:02 -0400 Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Oct 2020 10:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 43677 X-GNU-PR-Package: emacs Mail-Followup-To: 43677@debbugs.gnu.org, mattiase@acm.org, zeng.aaron.l@gmail.com Original-Received: via spool by 43677-done@debbugs.gnu.org id=D43677.160163286131894 (code D ref 43677); Fri, 02 Oct 2020 10:01:02 +0000 Original-Received: (at 43677-done) by debbugs.gnu.org; 2 Oct 2020 10:01:01 +0000 Original-Received: from localhost ([127.0.0.1]:39422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOHs4-0008IL-Jp for submit@debbugs.gnu.org; Fri, 02 Oct 2020 06:01:01 -0400 Original-Received: from mail233c50.megamailservers.eu ([91.136.10.243]:44780 helo=mail37c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOHs2-0008IC-4j for 43677-done@debbugs.gnu.org; Fri, 02 Oct 2020 06:00:59 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1601632856; bh=reIsFOPFresykpSO9l79aSbrf/8+1yjtXbzqaT1T6ag=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=LrgsOekPg+SKqwnkgLDRBNByl4+ITk7tDUkPbmI6k+qfYijJk67HUsxHp6JUkjb45 PC4+bVgMib1mny56aVJtbZ4vgMNnjvhU9N2+bY3OY9MNPw7Wd+hvVDh9ySmwFfdeTO TuR7lUrWOkQQ5nCxCOCdXCi41e3V9iGZW1a+cyE8= Feedback-ID: mattiase@acm.or Original-Received: from stanniol.lan (c-304ee655.032-75-73746f71.bbcust.telenor.se [85.230.78.48]) (authenticated bits=0) by mail37c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 092A0qVG026546; Fri, 2 Oct 2020 10:00:55 +0000 In-Reply-To: X-Mailer: Apple Mail (2.3445.104.17) X-CTCH-RefID: str=0001.0A782F28.5F76FA58.000A, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=bJNo382Z c=1 sm=1 tr=0 a=63Z2wlQ1NB3xHpgKFKE71g==:117 a=63Z2wlQ1NB3xHpgKFKE71g==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=pGLkceISAAAA:8 a=1a1r-yCctQRN7V8O0NwA:9 a=CjuIK1q_8ugA:10 X-Origin-Country: SE X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:189636 Archived-At: 2 okt. 2020 kl. 00.47 skrev Aaron Zeng : >=20 > Mattias, that patch seems to work well for me (I tested this by just > loading the lisp into an older version of emacs, since I don't have > experience compiling emacs from source). I don't need business days > for BC dates. Excellent, patch pushed to master and bug closed. Nevermind those BC dates -- it doesn't make much sense to compute = business days for proleptic Gregorian dates anyway, even more so = considering that the very concept of business days shift wildly = throughout history. It's just something that would be fun to have.