From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id CJY1GPykv2aBJQEA62LTzQ:P1 (envelope-from ) for ; Fri, 16 Aug 2024 19:14:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id CJY1GPykv2aBJQEA62LTzQ (envelope-from ) for ; Fri, 16 Aug 2024 21:14:04 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b="lfvNc/5j"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723835644; h=from:from:sender:sender:reply-to: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=0Hf5NDlNsaS4V+gMhGKvCLTjfOPjFUWFmLRrg/eQwLU=; b=aleGU3IfyIdCCOauZIc3Wi8np4vYTBSl8D5R2zDEpDe/HUIXl5pvtHh3lerKUboE74crTY 2IS0mra0sbyJScCwS/ngDaJm3AMf3mAt6ZnMKXplXOP0KrsyY2xgWYrwXwzKxDKtj6mM1Y kglojgEFimOlCiCqdIyS5xtzo8Wa3Uq4hYuodWqw63PUrgNKTWpQiJd10daKwIsPyuFS7q ykRLi0JD+buwHAI3H/3/7E5dMWInhUi+IdN+jXAuFxjnOtL42PZ3cVVOaTV3mjuVe398qf a9aJ1eoQl8PjD07T3wPf8/vXs8Q4I9Z/65aJKffpQlhdcNu4VCxDRd+A1MePSw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723835644; a=rsa-sha256; cv=none; b=hReaBBn0OQntLAxeE59jjmofRcfbGgF8QTMfUy0qH6GzdOzXNSk+01D6hWnpJ9CEGTJgnY ISubws+uHVj/+hGdNQxOHcdjDOkWt+avn8b0FkYGrtP/e1oocki3N6cGqZuCXpQ1MADz/t FlSTgqDjxKnyECNwrUAEXadg4HqUMhHFE9bhIt0uzuThV4TAy+cIDLwfjiYIyBLmMvPKqW YLgW+Eosdnc02XdP8gGfnuUhXC6UWzLHTDGXoIpcJt1WbJL5JpwO6Vmog5cIY+ibWLMzfh fgBWJAThKj6z7qQT0IPsxFR59TjzLECCQ/0jhT8R85B7czwv3Zaea0+rGnRLVw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b="lfvNc/5j"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" 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 3323F63903 for ; Fri, 16 Aug 2024 21:14:04 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sf2Nz-0006Tm-Ah; Fri, 16 Aug 2024 15:13:19 -0400 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 1sf2Nw-0006TQ-76 for guix-devel@gnu.org; Fri, 16 Aug 2024 15:13:16 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1sf2Nr-00085o-4z; Fri, 16 Aug 2024 15:13:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=/f0HwnV+UqRAnP9 O3YqSALnB879TgfoUuzyWZesx6z0=; h=date:references:in-reply-to:subject: cc:to:from; d=lease-up.com; b=lfvNc/5jAVxYpnJcEWdrDQwjyCGjUHLGnIA0Doug LL7wWJjJ8Y8MpOS6I3zWfKI+kRguAiNdcWbEW41I4sLJZ86T6/sK3XSWhmOiLnLkKXkthS n3QM+OW5ewBEwm7T1NaOrqp+7ToT6+EcOHdTh0ooJVf4kXitcg4lY6iJpwvWs= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 44ac5449 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Fri, 16 Aug 2024 19:13:07 +0000 (UTC) To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Attila Lendvai , Maya , guix-devel@gnu.org Subject: Re: Shepherd calendar event bug In-Reply-To: <87v804a62w.fsf_-_@gnu.org> References: <87a5je77f8.fsf@zenmaya.xyz> <877cea7cvf.fsf@gnu.org> <874j9el2r1.fsf@zenmaya.xyz> <8734oxw0yy.fsf@lease-up.com> <7bBOkABsh2UGPl3R44IG9ReG-7b5Cgp6oh4l-exc7kU948GaaYpzXSI4GoDhYEBrCy3xNlwATA07IUagy5nnWzb2hd4wvN0ebe058AEwkkY=@lendvai.name> <87v805bbwm.fsf@lease-up.com> <87v804a62w.fsf_-_@gnu.org> Date: Fri, 16 Aug 2024 12:13:06 -0700 Message-ID: <871q2o9t8d.fsf@lease-up.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@lease-up.com; helo=sail-ipv4.us-core.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Felix Lechner From: Felix Lechner via "Development of GNU Guix and the GNU System distribution." Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 3323F63903 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -6.97 X-Spam-Score: -6.97 X-TUID: xtQ2yNZAR7nf Hi Ludovic, On Tue, Aug 13 2024, Ludovic Court=C3=A8s wrote: > I was able to reproduce the issue with current =E2=80=98devel=E2=80=99: Thank you for that! > 327:8 2 (next-calendar-event #< seconds: (0) > minutes: (0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 > 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 > 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59) hours: (1) > days-of-month: (1 2 3 4 5 6 7) months: (1 2 3 4 5 6 7 8 9 10 11 > 12) days-of-week: (0)> _) Maybe some confusion between symbolic and integer days-of-week? > this is asking for a Sunday 1st, or 2nd, etc. until 7th, contrary to > what the comment says. [...] maybe what you want is to remove > #:days-of-month? I'm not sure about that. To me, the timers seem to run at the intersection of all values (effectively, a logical AND). I'd like to pick any Sunday that occurs during the first seven days of any month. It would be the first Sunday in each month. Also, here are some brief code questions, if you would be so kind to entertain them: Why are the ranges for minutes here [1] 0..60 instead of 0..59, and 0..7 for days-of-week instead of 0..6, please? Even if the intervals were to exclude an end point [2] they seem inconsistent with 1..12 for the months or 1..31 for days-of-month. Also, should the interval for the hours be 0..23 instead of 0..60? Thank you for your hard work on these great new features! Kind regards Felix [1] https://git.savannah.gnu.org/cgit/shepherd.git/tree/modules/shepherd/se= rvice/timer.scm?h=3Ddevel#n440 [2] https://en.wikipedia.org/wiki/Interval_(mathematics)#Including_or_exclu= ding_endpoints