From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Baum Subject: Setting a deadline in a template Date: Thu, 21 Jun 2012 10:48:29 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf307f3342e02ada04c2fc9b89 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShigX-0006ul-72 for emacs-orgmode@gnu.org; Thu, 21 Jun 2012 10:48:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShigS-00042F-I9 for emacs-orgmode@gnu.org; Thu, 21 Jun 2012 10:48:36 -0400 Received: from mail-vc0-f169.google.com ([209.85.220.169]:40652) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShigS-00041k-8P for emacs-orgmode@gnu.org; Thu, 21 Jun 2012 10:48:32 -0400 Received: by vcbfl10 with SMTP id fl10so449277vcb.0 for ; Thu, 21 Jun 2012 07:48:29 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --20cf307f3342e02ada04c2fc9b89 Content-Type: text/plain; charset=ISO-8859-1 I'm sure there's a simple answer to this but i can't seem to tease it out of the on-line docs. I want to set up a capture template for entering incoming work that automatically sets a deadline for the item when it's entered. Ideally, I'd like it to set a deadline 4 business hours in the future of the current time, but that's a tricky calculation and I'd settle for current time plus a day. I've tried the naive approach: ... DEADLINE: %T+1 ... Doesn't work so well. What's the proper way? Thanks, maaab -- ==================================== Michael Baum You should never have your best trousers on when you go out to fight for freedom and truth. - Ibsen --20cf307f3342e02ada04c2fc9b89 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I'm sure there's a simple answer to this but i can't seem to te= ase it out of the on-line docs. I want to set up a capture template for ent= ering incoming work that automatically sets a deadline for the item when it= 's entered. Ideally, I'd like it to set a deadline 4 business hours= in the future of the current time, but that's a tricky calculation and= I'd settle for current time plus a day.

I've tried the naive approach:
...
DEADLINE: %T+1
...
<= br>Doesn't work so well. What's the proper way?

Thanks,
m= aaab

--
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Michael Baum <maabaum@gmail.com= >

You should never have your best trousers on when you go out
= =A0to fight for freedom and truth. - Ibsen
--20cf307f3342e02ada04c2fc9b89-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Setting a deadline in a template Date: Thu, 21 Jun 2012 11:15:59 -0400 Message-ID: <8109.1340291759@alphaville> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Shj7B-0001LU-Hf for emacs-orgmode@gnu.org; Thu, 21 Jun 2012 11:16:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Shj75-0004p3-GV for emacs-orgmode@gnu.org; Thu, 21 Jun 2012 11:16:09 -0400 Received: from g5t0009.atlanta.hp.com ([15.192.0.46]:22838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Shj75-0004nm-Bu for emacs-orgmode@gnu.org; Thu, 21 Jun 2012 11:16:03 -0400 In-Reply-To: Message from Michael Baum of "Thu, 21 Jun 2012 10:48:29 EDT." 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Baum Cc: emacs-orgmode@gnu.org Michael Baum wrote: > I'm sure there's a simple answer to this but i can't seem to tease it out of the on-line docs. I > want to set up a capture template for entering incoming work that automatically sets a deadline for > the item when it's entered. Ideally, I'd like it to set a deadline 4 business hours in the future of > the current time, but that's a tricky calculation and I'd settle for current time plus a day. > > I've tried the naive approach: > ... > DEADLINE: %T+1 > ... > > Doesn't work so well. What's the proper way? > Off the top of my head, I suspect you will need to write your own function to produce the template you want. Nick From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sylvain Rousseau Subject: Re: Setting a deadline in a template Date: Thu, 21 Jun 2012 17:29:42 +0200 Message-ID: References: <8109.1340291759@alphaville> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=90e6ba308f104ca3e304c2fd2fe2 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShjKS-0003b3-9G for emacs-orgmode@gnu.org; Thu, 21 Jun 2012 11:29:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShjKM-0000wb-5I for emacs-orgmode@gnu.org; Thu, 21 Jun 2012 11:29:51 -0400 Received: from mail-lb0-f169.google.com ([209.85.217.169]:64263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShjKL-0000wI-RF for emacs-orgmode@gnu.org; Thu, 21 Jun 2012 11:29:46 -0400 Received: by lbjn8 with SMTP id n8so2737619lbj.0 for ; Thu, 21 Jun 2012 08:29:43 -0700 (PDT) In-Reply-To: <8109.1340291759@alphaville> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: Michael Baum , emacs-orgmode@gnu.org --90e6ba308f104ca3e304c2fd2fe2 Content-Type: text/plain; charset=ISO-8859-1 Something like: (format-time-string (car org-time-stamp-formats) (time-add (current-time) (seconds-to-time (* days 60 60 24)))) Sylvain. --90e6ba308f104ca3e304c2fd2fe2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Something like:

(format-time-string
=A0(car org-time-stamp-format= s)
=A0(time-add (current-time) (seconds-to-time (* days 60 60 24))))
=
Sylvain.
--90e6ba308f104ca3e304c2fd2fe2--