emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Erik Hetzner <egh@e6h.org>
To: Rene <jlr_0@yahoo.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: date next year
Date: Mon, 23 Dec 2013 14:41:11 -0800	[thread overview]
Message-ID: <87ha9zgph4.wl%egh@e6h.org> (raw)
In-Reply-To: <loom.20131220T132643-781@post.gmane.org>

At Fri, 20 Dec 2013 12:34:43 +0000 (UTC),
Rene wrote:
> 
> How can I set org-agenda-custom-commands so that I can get the tasks past a
> date in the coming year?
> 
> Suppose I'm interested in things past next september.  This
> 
> 	("y"
> 	 "Next year's appointments"
> 	 tags "TIMESTAMP>=\"<2014-09-01>\"")
> 
> works alright as long as we are before that date but won't work anymore next
> october.  I would have to modify my org config file each year.
> 
> Is there a generic way to indicate "next year"?
> 
> Thanks.

Hi Rene,

I don’t think there is a generic way, but you can use something like
this for your agenda view:

  ("y"
   "Next year's appointments"
   tags (format "TIMESTAMP>=\"<%s-09-01>\""  (+ 1 (calendar-extract-year (calendar-current-date)))))

best, Erik

-- 
Sent from my free software system <http://fsf.org/>.

      parent reply	other threads:[~2013-12-23 22:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-20 12:34 date next year Rene
2013-12-20 18:07 ` Samuel Wales
2013-12-22 15:20   ` Rene
2013-12-23 22:41 ` Erik Hetzner [this message]

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=87ha9zgph4.wl%egh@e6h.org \
    --to=egh@e6h.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=jlr_0@yahoo.com \
    /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).