From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: counter macro in dates? Date: Thu, 17 Aug 2017 15:25:31 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c1111c4d409a70556f7f947" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1diQQB-0002md-SO for emacs-orgmode@gnu.org; Thu, 17 Aug 2017 15:25:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1diQQB-0007d3-0W for emacs-orgmode@gnu.org; Thu, 17 Aug 2017 15:25:35 -0400 Received: from mail-pg0-x22f.google.com ([2607:f8b0:400e:c05::22f]:36046) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1diQQA-0007Wz-Q3 for emacs-orgmode@gnu.org; Thu, 17 Aug 2017 15:25:34 -0400 Received: by mail-pg0-x22f.google.com with SMTP id i12so49000476pgr.3 for ; Thu, 17 Aug 2017 12:25:33 -0700 (PDT) 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: Org Mode --94eb2c1111c4d409a70556f7f947 Content-Type: text/plain; charset="UTF-8" I'd love to be able generate dates dynamically using the {{{n}}} org macro, or some other mechanism. I don't immediately see how that would be possible but maybe someone can guide me. I'd want to do something equivalent to this pseudo-elisp: (let ((base-date 2017-09-05)) (+ base-date (* 7 {{{n}}})) I haven't looked into how date objects are parsed in org-mode, though, so I have no idea how hard it would be to actually implement something like this. Thank you everyone! --94eb2c1111c4d409a70556f7f947 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'd love to be able generate dates dynamically us= ing the {{{n}}} org macro, or some other mechanism.=C2=A0 I don't immed= iately see how that would be possible but maybe someone can guide me.=C2=A0= I'd want to do something equivalent to this pseudo-elisp:
(let ((base-date 2017-09-05))
=C2=A0 (+ base-date (*= 7 {{{n}}}))

I haven't looked into how date ob= jects are parsed in org-mode, though, so I have no idea how hard it would b= e to actually implement something like this.=C2=A0=C2=A0

Thank you everyone!
--94eb2c1111c4d409a70556f7f947--