From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66502: 30.0.50; [PATCH; DOC] time-to-days and days-to-time use different epochs Date: Sat, 14 Oct 2023 12:02:10 +0300 Message-ID: <835y39shkd.fsf@gnu.org> References: <25896.11159.190340.117173@orion.rgrjr.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25941"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66502-done@debbugs.gnu.org To: Bob Rogers Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 14 11:03:03 2023 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 1qraY3-0006Z6-7H for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Oct 2023 11:03:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qraXl-0005J9-0X; Sat, 14 Oct 2023 05:02:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qraXf-0005HY-9O for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 05:02:43 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qraXf-0001mT-0g for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 05:02:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qraY2-0008N5-F8 for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 05:03:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Oct 2023 09:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 66502 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 66502@debbugs.gnu.org, eliz@gnu.org, rogers@rgrjr.com Original-Received: via spool by 66502-done@debbugs.gnu.org id=D66502.169727416232136 (code D ref 66502); Sat, 14 Oct 2023 09:03:02 +0000 Original-Received: (at 66502-done) by debbugs.gnu.org; 14 Oct 2023 09:02:42 +0000 Original-Received: from localhost ([127.0.0.1]:47874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qraXh-0008MF-RQ for submit@debbugs.gnu.org; Sat, 14 Oct 2023 05:02:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59904) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qraXg-0008M0-8z for 66502-done@debbugs.gnu.org; Sat, 14 Oct 2023 05:02:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qraXD-0001id-9S; Sat, 14 Oct 2023 05:02:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6PrX/IBf/AFw2smLInLjrY/JrQBXxqia9YKntciYM5E=; b=CoRkeyPEmbN/ CbEQCXi3uBHXAv6ed/bd4jFSK0PGCrA4ifiZzU8l1IY11qE9HfeBAMDRda3rb/KDt/uABLj1C366r vBT5fWeQKZ2snOfOPxzyGg7LYNclT8HStYxISTbPS48brJLY+lxNyE/ur6S5wJy2DDA82Dn4pnz7l e+K01DLMbdq4h9JoDOQWbPNCuUIBJOQFVKh7qg0uHS42rMYqMaQ0KptqETnCgTDuFjZ7W38WEwCjN vYDk3grtQCQvV2nFywbGCPD7/CKvX60i7JQrUwVgGWgho4ymMomtuhJPTWYN6eLaKUGxZ4L9+ofV/ MZYtVobsaEzUena5OdhVPQ==; In-Reply-To: <25896.11159.190340.117173@orion.rgrjr.com> (message from Bob Rogers on Thu, 12 Oct 2023 10:23:35 -0700) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272396 Archived-At: > From: Bob Rogers > Date: Thu, 12 Oct 2023 10:23:35 -0700 > > Imagine my surprise when converting back using days-to-time gave me > something almost two millenia in the future. Of course, the problem was > that days-to-time uses a different epoch from time-to-days. The fix was > pretty easy . . . and then I discovered all the code that depends on the > existing behavior. So I offer the following modest documentation patch, > in the hope that others will be spared any similar confusion. Thanks, installed on the emacs-29 branch, and closing the bug. Please in the future accompany the patches by a ChangeLog-style commit log message, it makes the patches easier to install.