emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Setting a deadline in a template
@ 2012-06-21 14:48 Michael Baum
  2012-06-21 15:15 ` Nick Dokos
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Baum @ 2012-06-21 14:48 UTC (permalink / raw)
  To: emacs-orgmode

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

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 <maabaum@gmail.com>

You should never have your best trousers on when you go out
 to fight for freedom and truth. - Ibsen

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

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

* Re: Setting a deadline in a template
  2012-06-21 14:48 Setting a deadline in a template Michael Baum
@ 2012-06-21 15:15 ` Nick Dokos
  2012-06-21 15:29   ` Sylvain Rousseau
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Dokos @ 2012-06-21 15:15 UTC (permalink / raw)
  To: Michael Baum; +Cc: emacs-orgmode

Michael Baum <maabaum@gmail.com> 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

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

* Re: Setting a deadline in a template
  2012-06-21 15:15 ` Nick Dokos
@ 2012-06-21 15:29   ` Sylvain Rousseau
  0 siblings, 0 replies; 3+ messages in thread
From: Sylvain Rousseau @ 2012-06-21 15:29 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: Michael Baum, emacs-orgmode

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

Something like:

(format-time-string
 (car org-time-stamp-formats)
 (time-add (current-time) (seconds-to-time (* days 60 60 24))))

Sylvain.

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

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

end of thread, other threads:[~2012-06-21 15:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-21 14:48 Setting a deadline in a template Michael Baum
2012-06-21 15:15 ` Nick Dokos
2012-06-21 15:29   ` Sylvain Rousseau

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