From: "Michaël Cadilhac" <michael@cadilhac.name>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: Org-Mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: org-icalendar: Change dates to today in VEVENT export
Date: Sun, 15 Sep 2019 12:06:23 -0500 [thread overview]
Message-ID: <CADt3fpOfzzmFqFz-6HkVqRuu_+afZ=vMAM3HZd892v0mvXFAyA@mail.gmail.com> (raw)
In-Reply-To: <87ef0ufzx4.fsf@nicolasgoaziou.fr>
Hi there,
On Thu, 5 Sep 2019 at 11:53, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> Michaël Cadilhac <michael@cadilhac.name> writes:
> > +(defun org-icalendar-today-timestamp ()
> > + "Return a TIMESTAMP object for today, at 00:00."
> > + (let ((dt (decode-time)))
> > + (list 'timestamp
> > + (nconc (list :year-start (nth 5 dt)
> > + :year-end (nth 5 dt)
> > + :month-start (nth 4 dt)
> > + :month-end (nth 4 dt)
> > + :day-start (nth 3 dt)
> > + :day-end (nth 3 dt))))))
>
> This function already exists: `org-timestamp-from-time'. Could you use
> that instead?
Right, you pointed this out the first time, and I forgot to address
this: How would you build such a timestamp *with the -end bits* using
org-timestamp-from-time? It seems that
org-icalendar-convert-timestamp expects that these be filled.
Thanks,
M.
next prev parent reply other threads:[~2019-09-15 17:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-01 12:47 org-icalendar: Change dates to today in VEVENT export Michaël Cadilhac
2019-02-07 12:31 ` Michaël Cadilhac
2019-02-07 13:30 ` Nicolas Goaziou
2019-02-07 15:04 ` Michaël Cadilhac
2019-02-12 8:34 ` Nicolas Goaziou
2019-08-28 22:54 ` Michaël Cadilhac
2019-09-05 16:52 ` Nicolas Goaziou
2019-09-15 17:06 ` Michaël Cadilhac [this message]
2019-09-16 16:32 ` Nicolas Goaziou
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADt3fpOfzzmFqFz-6HkVqRuu_+afZ=vMAM3HZd892v0mvXFAyA@mail.gmail.com' \
--to=michael@cadilhac.name \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/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/org-mode.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).