Hi there, On Thu, 5 Sep 2019 at 11:53, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:
> Michaël Cadilhac <mich...@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.