emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-icalendar: Change dates to today in VEVENT export


From: Michaël Cadilhac
Subject: Re: [O] org-icalendar: Change dates to today in VEVENT export
Date: Sun, 15 Sep 2019 12:06:23 -0500

Hi there,

On Thu, 5 Sep 2019 at 11:53, Nicolas Goaziou <address@hidden> wrote:

> Michaël Cadilhac <address@hidden> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]