emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jesse Johnson <holocronweaver@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Schedule org task for last day of every month
Date: Mon, 27 Mar 2017 13:04:44 -0700	[thread overview]
Message-ID: <a2260a91-08c9-ee7c-f94c-f33f80652a38@gmail.com> (raw)

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

Hi all,

How do I schedule a repeating org-mode task for the last day of every month?

As is, when I set a task deadlines like |DEADLINE: <2017-03-31 Fri 
+1m>|, marking it done shifts the date to |DEADLINE: <2017-05-01 Fri 
+1m>| which is a day too late if the deadline is the end of the month. 
Dates scheduled for the beginning of the month properly advance to the 
first of the following month, regardless of number of days in each 
month, so there is inconsistency in how the beginning and end of months 
are treated.

I previously posted this question on the Emacs StackExchange: 
http://emacs.stackexchange.com/questions/31683/schedule-org-task-for-last-day-of-every-month

I received solutions involving either manually duplicating date-shifted 
tasks or creating a custom diary function. Since scheduling repeating 
deadlines for the end of each month is a common use case, I feel this 
should be built into org mode if it is not already. If the same logic 
which shifts dates at the beginning of the month is applied to the end 
of the month, a nice symmetry would be created without adding any 
additional notation. Then |<2017-03-31 Fri +1m> |would shift to 
|<2017-04-30 Sun +1m> |as I originally expected it to.

Thoughts? I am willing to implement this feature and update the docs.

Jesse


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

                 reply	other threads:[~2017-03-27 20:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=a2260a91-08c9-ee7c-f94c-f33f80652a38@gmail.com \
    --to=holocronweaver@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).