From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Micha=C3=ABl_Cadilhac?= Subject: Re: org-icalendar: Change dates to today in VEVENT export Date: Sun, 15 Sep 2019 12:06:23 -0500 Message-ID: References: <87d0o37mkh.fsf@nicolasgoaziou.fr> <87pnrx4d77.fsf@nicolasgoaziou.fr> <87ef0ufzx4.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55779) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9XzN-00053l-KW for emacs-orgmode@gnu.org; Sun, 15 Sep 2019 13:07:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i9XzM-000105-F1 for emacs-orgmode@gnu.org; Sun, 15 Sep 2019 13:07:05 -0400 Received: from cadilhac.name ([163.172.56.42]:39532 helo=mattermost.cadilhac.name) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i9XzL-0000xg-Tb for emacs-orgmode@gnu.org; Sun, 15 Sep 2019 13:07:04 -0400 Received: from mail-vs1-f50.google.com (mail-vs1-f50.google.com [209.85.217.50]) by mattermost.cadilhac.name (OpenSMTPD) with ESMTPSA id 54ad7e49 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Sun, 15 Sep 2019 17:07:00 +0000 (UTC) Received: by mail-vs1-f50.google.com with SMTP id p13so3060568vso.0 for ; Sun, 15 Sep 2019 10:07:00 -0700 (PDT) In-Reply-To: <87ef0ufzx4.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: Org-Mode mailing list Hi there, On Thu, 5 Sep 2019 at 11:53, Nicolas Goaziou wrote= : > Micha=C3=ABl Cadilhac 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.