emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ian Barton <lists@manor-farm.org>
To: Fredrik <fredrik@jumans.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Date calculations
Date: Wed, 30 Dec 2009 13:09:40 +0000	[thread overview]
Message-ID: <4B3B5114.9000703@manor-farm.org> (raw)
In-Reply-To: <6DC4A9FE-BA1F-4106-87D7-29985BF09116@jumans.net>

Fredrik wrote:
> I'm using a normal org-file as my contact register so I easier can link 
> tasks to a specific person. I have also added events as birthdays to 
> each contact but is there some way I can make them show up in the agenda 
> with some yearly calculations?
> 
> For example a simple birthday reminder can look like this:
> 
> * <2006-12-30 ++1y> Happy Birthday!
> 
> Is there some clever way I can add a date calculation to it when it 
> shows up in the agenda?
> 
> * <2006-12-30 ++1y> Happy Birthday %d years!
> 
> Regards,
> 
You can use diary sexps. Search the manual for "Diary-style sexp 
entries". As an example I have:

%%(diary-anniversary 3  1 2000) Ella is %d years old

in one of my org files.

Ian.

  parent reply	other threads:[~2009-12-30 13:09 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-30 12:47 Date calculations Fredrik
2009-12-30 13:08 ` Fredrik
2009-12-30 13:09 ` Ian Barton [this message]
2009-12-30 13:11 ` Benjamin Andresen
2009-12-30 14:21   ` Benjamin Andresen
2009-12-30 15:05     ` Memnon Anon
2009-12-30 15:27     ` Carsten Dominik
2009-12-30 15:43       ` Benjamin Andresen
2009-12-30 15:58         ` Memnon Anon
2009-12-30 16:08           ` Benjamin Andresen
2009-12-30 19:21             ` Carsten Dominik
2009-12-30 19:51               ` Benjamin Andresen
2009-12-30 22:41                 ` Carsten Dominik
2009-12-30 20:37               ` Memnon Anon
2009-12-30 22:46                 ` Ben Finney
2010-01-01 10:32                 ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B3B5114.9000703@manor-farm.org \
    --to=lists@manor-farm.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=fredrik@jumans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).