From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id EEImLThKb2dYKgEAe85BDQ:P1 (envelope-from ) for ; Sat, 28 Dec 2024 00:45:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id EEImLThKb2dYKgEAe85BDQ (envelope-from ) for ; Sat, 28 Dec 2024 01:45:44 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="c45zmTf/"; dkim=pass header.d=cs.ucla.edu header.s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C header.b=mum2CdGg; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=cs.ucla.edu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735346744; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=zMW2GEMUydoW6HED1dQtKASO0h9K3gUr2raMvWFzfBQ=; b=Imlg0kVJJj1RTavdeVM4Z9ZYgPGjTVqw9IwqUWzLRHwmJwy2OIwBpt+8HMDXyQiE5iQVeV Rx4Hp+ZGzVnLmK2ZX6ycVgCP0fWRjrGxZL379GYYcAMrAcVC2Sc3RT4Dopw/2UMt5W3CbK pBS3baNH8hkGdnAMeJIbHnKbjl6R5vUOuJ+frdC2r7NP0ldHKm5J7DDVXNMnMocsagbNL9 pp/CmzNSaSOmwbKGIBF3MkqRZgpHQ6Fb5wLk90RVq1ILP05sNs33ECAvJDJRw5BRC8+baZ CEv9F7n8OdywRhdq/AZO7RbeHghu2nfW1UAvy4PsP6/FT7dcR6MYwK8ojKICcA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="c45zmTf/"; dkim=pass header.d=cs.ucla.edu header.s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C header.b=mum2CdGg; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=cs.ucla.edu ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735346744; a=rsa-sha256; cv=none; b=f+8Ot0YiIQszt6B8PngTpRoxEgKEiCHHLexfhxNozNQWctv8huCYsTgJ7a42edYPwDyC32 40Mpzu6s4mPknxKS9SDG4ALKcGqpqvHpkXs8qiP1F+jozEeNCElqai9WuOBbAun8qYfJhF rXQNhvuWvpyFLD6VbH1uDTT3f/J1tL2sYFcg+y9+VUK8S0Th8U1KeltSPMGxF1Mf/UXHIV faYOSoJAWSXbfJASpNbrVDCeANzzuuupxgeX3vGqV5JjcygpcKlJKuZXmuwz1b0msQ1S2Y JJMgK9QMhOmZrWwqc36E0wviaRqz1dVUnxcfb5aL7hcciEXw2G9/zgwu26RAVg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C92D84148C for ; Sat, 28 Dec 2024 01:45:43 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRKx6-0000Kj-RL; Fri, 27 Dec 2024 19:45:12 -0500 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 1tRKwz-0000Jz-CC for guix-patches@gnu.org; Fri, 27 Dec 2024 19:45:06 -0500 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 1tRKww-0005Wl-JJ for guix-patches@gnu.org; Fri, 27 Dec 2024 19:45:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:MIME-Version:Date:To:In-Reply-To:References:Subject; bh=zMW2GEMUydoW6HED1dQtKASO0h9K3gUr2raMvWFzfBQ=; b=c45zmTf/xVR3RkVq63qZKv50jP5kQ7r94uhKUN4JTV2S6YeEjr+QpimMqLTr8VVVULtR+PkUUDAv/JJhywlykVRvbp26lI69TFIuRhbQcfPEFFcLYRsqVvjHRsmSqjyS3/wf8P0xFu/GOLcozf6AeQHqQuy8sJ8otk6iCWTBvFYdxKtYp8T2q0RBpdpzdZbSBdO3urPUhaZX5xrbJT7OaTYJGgLqdN0NHprjFKkBS7U6Y4LIy/Zm8UvO2a0JDOiV7dXQi2WsdnDqkiIgy5nwaZN+98AsfIvS3D/lUzwopPGX5E4HMWumExMHMtEr2qSX4QeoHYlJNF4aym4VrBoDOQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tRKww-0001lJ-6G for guix-patches@gnu.org; Fri, 27 Dec 2024 19:45:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74689] [PATCH] Add predicates for decoded times and time deltas References: In-Reply-To: Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 28 Dec 2024 00:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74689 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Richard Lawrence Cc: 74689@debbugs.gnu.org Received: via spool by 74689-submit@debbugs.gnu.org id=B74689.17353466836734 (code B ref 74689); Sat, 28 Dec 2024 00:45:02 +0000 Received: (at 74689) by debbugs.gnu.org; 28 Dec 2024 00:44:43 +0000 Received: from localhost ([127.0.0.1]:48074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRKwd-0001kY-9C for submit@debbugs.gnu.org; Fri, 27 Dec 2024 19:44:43 -0500 Received: from mail.cs.ucla.edu ([131.179.128.66]:51542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRKwb-0001kJ-D7 for 74689@debbugs.gnu.org; Fri, 27 Dec 2024 19:44:42 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 300743C011BDC; Fri, 27 Dec 2024 16:44:35 -0800 (PST) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id Nail98NGHjO0; Fri, 27 Dec 2024 16:44:35 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id E5EE33C011BDE; Fri, 27 Dec 2024 16:44:34 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu E5EE33C011BDE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1735346674; bh=zMW2GEMUydoW6HED1dQtKASO0h9K3gUr2raMvWFzfBQ=; h=Message-ID:Date:MIME-Version:To:From; b=mum2CdGgj7utX9GrDnOEd9Ai5T4NVkmYDy7A+/qL2Qg7ashPNpXfm/9fpFgv7u2CW 4RTPAfttbpNcdWrvjjpQCUCS5NPnm8/SJ/PqTRKGck7O8AjgMKNWVm1Ws1ovumnnJK ixvgSFlAJt+5WN2bLAvmw3w0DF8XsF1D/vlqRIBnLNWdxd5yh8uwfDXYk0XFbXcEaV 4JrQnZHpVOe64FG4C6s7LAnXAcMZkssIA9iPMHBgMfT9yrWAxkAPxCXwYtK5MBqKBu ThpnEUM1lFQRndy7Z1kJPTQRepCq7x1k+ePI/vguMBycQLjir1bw6o6wwUmGKDTWmS gRNQ/BN/YzM/w== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id N4NgqZRthHAC; Fri, 27 Dec 2024 16:44:34 -0800 (PST) Received: from [192.168.0.102] (unknown [47.154.28.214]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 0A2563C011BDC; Fri, 27 Dec 2024 16:44:33 -0800 (PST) Message-ID: <468ca0ab-a4aa-41ed-8f6c-260940f3f9f3@cs.ucla.edu> Date: Fri, 27 Dec 2024 16:44:32 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Paul Eggert Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: C92D84148C X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -1.39 X-Spam-Score: -1.39 X-TUID: fwRJoeCHv7Ht What's the use case for these proposed predicates? I'm finding it hard to review the patch without knowing what it's for. Surely this should be in time-date.el rather than simple.el. The implementation of decoded-time-p seems complicated and doesn't match what decode-time produces. Wouldn't it be simpler to call (ignore-errors (equal val (decode-time (encode-time val))))?