emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* counter macro in dates?
@ 2017-08-17 19:25 Matt Price
  2017-08-23  6:27 ` Adam Porter
  0 siblings, 1 reply; 6+ messages in thread
From: Matt Price @ 2017-08-17 19:25 UTC (permalink / raw)
  To: Org Mode

[-- Attachment #1: Type: text/plain, Size: 480 bytes --]

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!

[-- Attachment #2: Type: text/html, Size: 622 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-08-24 15:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-17 19:25 counter macro in dates? Matt Price
2017-08-23  6:27 ` Adam Porter
2017-08-23 21:02   ` Kaushal Modi
2017-08-24  1:45     ` Adam Porter
2017-08-24 10:39       ` Kaushal Modi
2017-08-24 15:30       ` Kaushal Modi

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).