From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Boal Newsgroups: gmane.emacs.bugs Subject: bug#67706: 30.0.50; timer-next-integral-multiple-of-time does not account for different time-zones Date: Fri, 08 Dec 2023 21:00:31 +0000 Message-ID: <87ttosz9xs.fsf@bboal.com> References: <87msuk3obe.fsf@bboal.com> <83sf4czwwb.fsf@gnu.org> <87il583afc.fsf@bboal.com> <83a5qkze4r.fsf@gnu.org> <87fs0c32d9.fsf@bboal.com> <837clozam9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22142"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67706@debbugs.gnu.org, info@protesilaos.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 09 00:36:31 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 1rBkOV-0005Ya-Kz for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Dec 2023 00:36:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBkNr-0001b6-N3; Fri, 08 Dec 2023 18:35:51 -0500 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 1rBkNr-0001as-1E for bug-gnu-emacs@gnu.org; Fri, 08 Dec 2023 18:35:51 -0500 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 1rBkNq-00022l-PK for bug-gnu-emacs@gnu.org; Fri, 08 Dec 2023 18:35:50 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rBkO3-0001qN-UY for bug-gnu-emacs@gnu.org; Fri, 08 Dec 2023 18:36:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bruno Boal Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Dec 2023 23:36:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67706 X-GNU-PR-Package: emacs Original-Received: via spool by 67706-submit@debbugs.gnu.org id=B67706.17020785306999 (code B ref 67706); Fri, 08 Dec 2023 23:36:03 +0000 Original-Received: (at 67706) by debbugs.gnu.org; 8 Dec 2023 23:35:30 +0000 Original-Received: from localhost ([127.0.0.1]:46477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBkNV-0001oj-L5 for submit@debbugs.gnu.org; Fri, 08 Dec 2023 18:35:30 -0500 Original-Received: from mout-p-103.mailbox.org ([2001:67c:2050:0:465::103]:36946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBhxu-0003wf-D1 for 67706@debbugs.gnu.org; Fri, 08 Dec 2023 16:00:55 -0500 Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4Sn3Sd6cyJz9sSH; Fri, 8 Dec 2023 22:00:33 +0100 (CET) In-Reply-To: <837clozam9.fsf@gnu.org> X-Rspamd-Queue-Id: 4Sn3Sd6cyJz9sSH X-Mailman-Approved-At: Fri, 08 Dec 2023 18:35:26 -0500 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:275814 Archived-At: Eli Zaretskii writes: >> From: Bruno Boal >> Cc: 67706@debbugs.gnu.org, info@protesilaos.com >> Date: Fri, 08 Dec 2023 19:45:06 +0000 >>=20 >> (run-at-time TIME REPEAT FUNCTION &rest ARGS) >> ... >> TIME should be one of: ... >>=20 >> - a number of seconds from now; ;; The example you gave. Not applicable. >>=20 >> - or t (with non-nil REPEAT) meaning the next integral multiple of >> REPEAT. This is handy when you want the function to run at a certain >> "round" number. For instance, (run-at-time t 60 ...) will run at >> 11:04:00, 11:05:00, etc. ;; My example. > > The ELisp manual says: > > > In most cases, REPEAT has no effect on when _first_ call takes > place--TIME alone specifies that. There is one exception: if TIME > is =E2=80=98t=E2=80=99, then the timer runs whenever the time is a m= ultiple of > REPEAT seconds after the epoch. > > So I think time in this case is measured since the epoch, which is > independent of the time zone. I see. So it's desired behavior and not a bug. We'll have to work around it with code, since there's no option in run-at-time that fits our needs. Thank you for the explanation, it's a closed issue to me. Best regards, Bruno Boal