emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Computing dates in properties?
@ 2016-07-08  4:01 Jay Iyer
  2016-07-08  8:37 ` Philip Hudson
  0 siblings, 1 reply; 2+ messages in thread
From: Jay Iyer @ 2016-07-08  4:01 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi,
Is it possible to perform simple calculations in properties like in the
example below?  If so, please provide pointers.
Thanks,
-jay

** Headline 1
:PROPERTIES:
:CUSTOM_ID: headline_1
:DATE: [2016-07-07 Thu]
:END:

** Headline 2
:PROPERTIES:
:CUSTOM_ID: headline_2
*:DATE: [date from headline 1 + 3 days]*
:END:

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

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

* Re: Computing dates in properties?
  2016-07-08  4:01 Computing dates in properties? Jay Iyer
@ 2016-07-08  8:37 ` Philip Hudson
  0 siblings, 0 replies; 2+ messages in thread
From: Philip Hudson @ 2016-07-08  8:37 UTC (permalink / raw)
  To: Jay Iyer; +Cc: emacs orgmode-mailinglist

On 8 July 2016 at 05:01, Jay Iyer <jayiyer09@gmail.com> wrote:
> Is it possible to perform simple calculations in properties like in the
> example below?  If so, please provide pointers.
> Thanks,
> -jay
>
> ** Headline 1
> :PROPERTIES:
> :CUSTOM_ID: headline_1
> :DATE: [2016-07-07 Thu]
> :END:
>
> ** Headline 2
> :PROPERTIES:
> :CUSTOM_ID: headline_2
> :DATE: [date from headline 1 + 3 days]
> :END:

One way would be to use org-capture's %^ and %(lisp-function-call) syntax.

-- 
Phil Hudson                   http://hudson-it.ddns.net
@UWascalWabbit                 PGP/GnuPG ID: 0x887DCA63

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

end of thread, other threads:[~2016-07-08  8:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-08  4:01 Computing dates in properties? Jay Iyer
2016-07-08  8:37 ` Philip Hudson

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