From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.orgmode,gmane.emacs.devel Subject: Re: master 4a1f69ebca 2/2: Use (TICKS . HZ) for current-time etc. Date: Wed, 27 Apr 2022 12:55:30 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38979"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Mark Barton , emacs-devel@gnu.org, emacs-orgmode To: Paul Eggert Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Wed Apr 27 18:56:05 2022 Return-path: Envelope-to: geo-emacs-orgmode@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 1njkxR-0009x7-Bl for geo-emacs-orgmode@m.gmane-mx.org; Wed, 27 Apr 2022 18:56:05 +0200 Original-Received: from localhost ([::1]:49800 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njkxQ-0000md-7k for geo-emacs-orgmode@m.gmane-mx.org; Wed, 27 Apr 2022 12:56:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njkx0-0000mE-4A; Wed, 27 Apr 2022 12:55:38 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:7844) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njkwx-0004pU-65; Wed, 27 Apr 2022 12:55:36 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id F41054423EC; Wed, 27 Apr 2022 12:55:32 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id C5DAA4423EA; Wed, 27 Apr 2022 12:55:31 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1651078531; bh=Ho1ZWP8aNmqFhXWUj9wMBO4lC49sHh4WL3T2jOEajuw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=mpAQyxNFM3xu2Oup8N2vrhxKjfI/pL3+UcwfxtSSzw1OTn458phECxYTJd9lz0EwT iI2lv6MDOYPtc7hppmgYwByJese3w/P8pZmRQl7+cjrdQX7AFM90jappLGy46IjvA5 5TGytf7bXhAPBn9FfRLrcvBKRg/1P3r+oomJCQJ0/mKSA3n+xnRUmk9JsQkgwpLsy/ CR+ag01ni3F6sBiJY0xlBoekPPN8HEK6MD1dVUImD3KyV5X+puuOYcwilw2E14aM8x uZ7zE8wPTYLjpEusr9Y0wHjSiwfwzVRvlsAFhmD3qOLUgzGY73ChQJ+HS4x6nvXVfv h55I1Rqm+HUxA== Original-Received: from alfajor (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id ADCD2120278; Wed, 27 Apr 2022 12:55:31 -0400 (EDT) In-Reply-To: (Paul Eggert's message of "Wed, 27 Apr 2022 00:39:01 -0700") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-orgmode" Xref: news.gmane.io gmane.emacs.orgmode:144796 gmane.emacs.devel:288923 Archived-At: > - (not (time-less-p (cl-subseq (nth 5 (file-attributes file)) 0 2) > - (cl-subseq time 0 2))))) > + (not (time-less-p (org-time-convert-to-integer > + (nth 5 (file-attributes file))) > + (org-time-convert-to-integer time))))) Instead of rounding the times to whole seconds, wouldn't it make more sense to check that the difference is larger than 1s? Stefan