all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Richard Lawrence <rwl@recursewithless.net>
Cc: 74689@debbugs.gnu.org
Subject: [bug#74689] [PATCH] Add predicates for decoded times and time deltas
Date: Sat, 28 Dec 2024 09:26:23 -0800	[thread overview]
Message-ID: <e6537a9d-3f74-46a0-9bbd-ef63d045f4c2@cs.ucla.edu> (raw)
In-Reply-To: <875xn3vm14.fsf@recursewithless.net>

On 12/28/24 07:56, Richard Lawrence wrote:
> I need to use
> `calendar-extract-month' with a plain date value, but
> `decoded-time-month' with a date-time value. I need type predicates to
> do such dispatching.

Not necessarily; you can instead try each function in turn and use the 
first that works.

I have some qualms about saying that decoded times are a "type". Whether 
a decoded time is valid depends on the timezone: (0 30 2 10 3 2024 0 t 
-21600) is a valid decoded time in Phoenix but not in Denver, because 
clocks sprang forward over that time in Denver but not in Phoenix. When 
data interpretation gets that complicated, the Emacs notion of "type" is 
not always the best.




      reply	other threads:[~2024-12-28 17:27 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-04 16:11 [bug#74689] [PATCH 0/3] fix non-x86 world rebuild Zheng Junjie
2024-12-04 16:13 ` [bug#74689] [PATCH 1/3] Partial revert "gnu: make-bootstrap: Update gcc-static to gcc-14, for the 64bit Hurd." Zheng Junjie
2024-12-04 16:31   ` Janneke Nieuwenhuizen
2024-12-04 16:40     ` Janneke Nieuwenhuizen
2024-12-04 17:08     ` Zheng Junjie
2024-12-04 17:13       ` Janneke Nieuwenhuizen
2024-12-04 16:13 ` [bug#74689] [PATCH 2/3] Partial revert "gnu: bootstrap: %bootstrap-glibc: Also fix libm.so." Zheng Junjie
2024-12-04 16:33   ` Janneke Nieuwenhuizen
2024-12-04 16:13 ` [bug#74689] [PATCH 3/3] Partial revert "gnu: bootstrap: %bootstrap-gcc: Also wrap g++ for the 64bit Hurd." Zheng Junjie
2024-12-04 16:46   ` Janneke Nieuwenhuizen
2024-12-04 17:02     ` Zheng Junjie
2024-12-04 16:57 ` [bug#74689] [PATCH v2 1/3] Partial revert "gnu: make-bootstrap: Update gcc-static to gcc-14, " Zheng Junjie
2024-12-04 16:57   ` [bug#74689] [PATCH v2 2/3] Partial revert "gnu: bootstrap: %bootstrap-glibc: Also fix libm.so." Zheng Junjie
2024-12-04 17:06     ` Janneke Nieuwenhuizen
2024-12-04 16:57   ` [bug#74689] [PATCH v2 3/3] Partial revert "gnu: bootstrap: %bootstrap-gcc: Also wrap g++ for the 64bit Hurd." Zheng Junjie
2024-12-04 17:07     ` Janneke Nieuwenhuizen
2024-12-04 17:05   ` [bug#74689] [PATCH v2 1/3] Partial revert "gnu: make-bootstrap: Update gcc-static to gcc-14, " Janneke Nieuwenhuizen
2024-12-10 23:37 ` bug#74689: [PATCH 0/3] fix non-x86 world rebuild Ludovic Courtès
2024-12-28  0:44 ` [bug#74689] [PATCH] Add predicates for decoded times and time deltas Paul Eggert
2024-12-28 15:56   ` Richard Lawrence
2024-12-28 17:26     ` Paul Eggert [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e6537a9d-3f74-46a0-9bbd-ef63d045f4c2@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=74689@debbugs.gnu.org \
    --cc=rwl@recursewithless.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.