GNU bug report logs -
#67706
30.0.50; timer-next-integral-multiple-of-time does not account for different time-zones
Previous Next
Reported by: Bruno Boal <egomet <at> bboal.com>
Date: Fri, 8 Dec 2023 12:36:02 UTC
Severity: normal
Found in version 30.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Bruno Boal <egomet <at> bboal.com>
> Cc: 67706 <at> debbugs.gnu.org, info <at> protesilaos.com
> Date: Fri, 08 Dec 2023 19:45:06 +0000
>
> (run-at-time TIME REPEAT FUNCTION &rest ARGS)
> ...
> TIME should be one of: ...
>
> - a number of seconds from now; ;; The example you gave. Not applicable.
>
> - 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 âtâ, then the timer runs whenever the time is a multiple 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.
This bug report was last modified 1 year and 202 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.