all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: "João Pedro" <jpedrodeamorim@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Request to add tomelr package to GNU ELPA
Date: Tue, 3 May 2022 12:45:19 -0400	[thread overview]
Message-ID: <CAFyQvY2Yd3pdi4mLYhZ=QC-C--61qxuQyVOiOWtpJ5TJ1dripg@mail.gmail.com> (raw)
In-Reply-To: <87mtfywqeh.fsf@gmail.com>

Hi João ,

Thanks for the feedback.

On Tue, May 3, 2022 at 12:07 PM João Pedro <jpedrodeamorim@gmail.com> wrote:
> It looks great, thanks for the contribution. I've only got one
> suggestion, if I may.
>
> >   (date . 2022-03-14T01:49:00-04:00) ;RFC 3339 date format
>
> Instead of relying only on the RFC 3339 date format, couldn't you also
> use Emacs' internal time representation as well?

I have special treatment for RFC 3339 because that's the only
date/time format recognized by TOML:
https://toml.io/en/v1.0.0#offset-date-time

I am expecting the elisp code using tomelr to provide it with the RFC
3339 formatted date/time string or symbol.

> There is a quite robust
> system for time manipulation in Emacs, below are some documentations for
> it.

Yes, I am using some of that to convert Org inserted date/time info to
RFC 3339 in ox-hugo here:
https://github.com/kaushalmodi/ox-hugo/blob/c24ea792484598ffd2f8e786fadb823d48c8ec12/ox-hugo.el#L1267-L1368
.
ox-hugo will then hand off that RFC 3339 formatted date/time to tomelr.

As you can see, that code is quite involved and I am not sure that
this library is the place for converting Emacs time to RFC 3339.
(Also, I briefly looked for it.. but I couldn't find something
analogous to timep that I can use to auto-convert that info to RFC
3339 that TOML needs.)


Kaushal



  reply	other threads:[~2022-05-03 16:45 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-03 10:57 Request to add tomelr package to GNU ELPA Kaushal Modi
2022-05-03 13:09 ` Stefan Monnier
2022-05-03 14:29   ` Kaushal Modi
2022-05-03 14:38     ` Stefan Monnier
2022-05-04  7:10       ` Robert Pluim
2022-05-04 13:02         ` Stefan Monnier
2022-05-05 18:36           ` Richard Stallman
2022-05-05 21:16             ` Kaushal Modi
2022-05-03 14:31   ` tomas
2022-05-03 16:07 ` João Pedro
2022-05-03 16:45   ` Kaushal Modi [this message]
2022-05-03 17:41     ` Stefan Monnier
2022-05-03 17:51       ` Kaushal Modi
2022-05-03 18:01     ` João Pedro
2022-05-03 21:39       ` Kaushal Modi
2022-05-03 22:41         ` Stefan Monnier
2022-05-03 22:56           ` Kaushal Modi
2022-05-03 23:02             ` Stefan Monnier
2022-05-04  0:40               ` Kaushal Modi
2022-05-04  2:10                 ` Stefan Monnier
2022-05-04  2:37                   ` Kaushal Modi
2022-05-04 12:40                 ` Unable to get .elpaignore to work [Was: Request to add tomelr package to GNU ELPA] Kaushal Modi
2022-05-04 12:52                   ` Kaushal Modi
2022-05-04 13:06                     ` Kaushal Modi
2022-05-04 13:18                       ` Stefan Monnier
2022-05-04 15:03                       ` Stefan Monnier
2022-05-04 15:06                         ` Kaushal Modi
2022-05-04 15:11                           ` Stefan Monnier
2022-05-04 21:14                             ` Kaushal Modi
2022-05-04 22:47 ` Request to add tomelr package to GNU ELPA Richard Stallman
2022-05-05 21:05   ` Kaushal Modi
2022-05-06 23:19     ` 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

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

  git send-email \
    --in-reply-to='CAFyQvY2Yd3pdi4mLYhZ=QC-C--61qxuQyVOiOWtpJ5TJ1dripg@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=jpedrodeamorim@gmail.com \
    /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/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.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.