From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: Date calculations Date: Wed, 30 Dec 2009 13:09:40 +0000 Message-ID: <4B3B5114.9000703@manor-farm.org> References: <6DC4A9FE-BA1F-4106-87D7-29985BF09116@jumans.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NPyJF-0004fq-Ae for emacs-orgmode@gnu.org; Wed, 30 Dec 2009 08:09:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NPyJD-0004dE-8o for emacs-orgmode@gnu.org; Wed, 30 Dec 2009 08:09:53 -0500 Received: from [199.232.76.173] (port=58366 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPyJD-0004d8-4w for emacs-orgmode@gnu.org; Wed, 30 Dec 2009 08:09:51 -0500 Received: from li143-44.members.linode.com ([109.74.196.44]:60006 helo=li40-130.members.linode.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NPyJC-00043y-OZ for emacs-orgmode@gnu.org; Wed, 30 Dec 2009 08:09:51 -0500 In-Reply-To: <6DC4A9FE-BA1F-4106-87D7-29985BF09116@jumans.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Fredrik Cc: emacs-orgmode@gnu.org 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.