unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "João Pedro" <jpedrodeamorim@gmail.com>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Request to add tomelr package to GNU ELPA
Date: Tue, 03 May 2022 15:01:20 -0300	[thread overview]
Message-ID: <87k0b2wl5b.fsf@gmail.com> (raw)
In-Reply-To: <CAFyQvY2Yd3pdi4mLYhZ=QC-C--61qxuQyVOiOWtpJ5TJ1dripg@mail.gmail.com>

On 03 May 2022 12:45, Kaushal Modi <kaushal.modi@gmail.com> wrote:

> 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.)

Oh, I see. I had assumed that you can already convert to RFC 3339 using
Emacs' built-in date and time functions. I guess it would be a matter of
introducing those to Emacs then via a patch, though I'm not sure how
exactly the code for converting time to a string works in regards to
different formats, and it doesn't seem like a simple format string would
do.

Thanks for the quick response!

Regards,

-- 
João Pedro de Amorim Paula
IT undergraduate at Universidade Federal do Rio Grande do Norte (UFRN)

  parent reply	other threads:[~2022-05-03 18:01 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
2022-05-03 17:41     ` Stefan Monnier
2022-05-03 17:51       ` Kaushal Modi
2022-05-03 18:01     ` João Pedro [this message]
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

  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=87k0b2wl5b.fsf@gmail.com \
    --to=jpedrodeamorim@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=kaushal.modi@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 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).