unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: Richard Lawrence <rwl@recursewithless.net>
Cc: emacs-devel@gnu.org
Subject: Re: Making decoded-times and calendar dates compatible?
Date: Sun, 15 Dec 2024 23:14:49 -0500	[thread overview]
Message-ID: <E1tN2VN-0004uN-9W@fencepost.gnu.org> (raw)
In-Reply-To: <8734isrign.fsf@ohm.mail-host-address-is-not-set> (message from Richard Lawrence on Thu, 12 Dec 2024 17:09:44 +0100)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]


  > The only documentation I'm aware of (besides the Calendar/Diary section
  > in the Emacs manual, which doesn't deal with the programming interface)
  > is in the docstrings of the library. The docstrings of the functions

  > calendar-extract-year
  > calendar-extract-month
  > calendar-extract-day

  > are where the (MONTH DAY YEAR) format is mentioned.

Would someoe like to add some comments at the start of the file
documenging this data structure?

  > This is the "standard", Gregorian format for calendar dates, but it is
  > not the only format that the calendar works with. Internally it also
  > uses an "absolute" format which is an integer number of days since
  > December 31, 1BC (see e.g. `calendar-absolute-from-gregorian'), and
  > converts between different calendar scales by converting to and from the
  > absolute format (see e.g. `calendar-iso-from-absolute').

It would be helpful to describe that representation too, in those comments.

  > Similarly, the only documentation I'm aware of for the decoded-time
  > format is in the docstrings of the functions `decode-time' and
  > `parse-time-string', and in the symbol documentation for `decoded-time',
  > which is declared as a cl-struct with :type list in simple.el. According
  > to a comment there, the point of this declaration is to provide
  > accessors for the various slots in the list, e.g. `decoded-time-month'.

This IS described in the Emacs Lisp Reference Manual, in section Time of Day.


-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





  reply	other threads:[~2024-12-16  4:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-08 12:00 Making decoded-times and calendar dates compatible? Richard Lawrence
2024-12-11  4:33 ` Richard Stallman
2024-12-12 16:09   ` Richard Lawrence
2024-12-16  4:14     ` Richard Stallman [this message]
2024-12-16 20:05       ` [PATCH] " Richard Lawrence
2024-12-17  4:39         ` Richard Stallman
2024-12-17 12:41           ` Eli Zaretskii
2024-12-17  4:39         ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=E1tN2VN-0004uN-9W@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).