From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Johnson Subject: Schedule org task for last day of every month Date: Mon, 27 Mar 2017 13:04:44 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------8B0CDA14F90897FA34117F09" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csask-0002yR-W9 for emacs-orgmode@gnu.org; Mon, 27 Mar 2017 16:04:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1csash-0000WD-Ql for emacs-orgmode@gnu.org; Mon, 27 Mar 2017 16:04:50 -0400 Received: from mail-pg0-x235.google.com ([2607:f8b0:400e:c05::235]:34273) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1csash-0000Vt-LJ for emacs-orgmode@gnu.org; Mon, 27 Mar 2017 16:04:47 -0400 Received: by mail-pg0-x235.google.com with SMTP id 21so50238736pgg.1 for ; Mon, 27 Mar 2017 13:04:47 -0700 (PDT) Received: from [192.168.1.199] (c-67-182-149-27.hsd1.wa.comcast.net. [67.182.149.27]) by smtp.gmail.com with ESMTPSA id s13sm2791840pfd.46.2017.03.27.13.04.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Mar 2017 13:04:45 -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" To: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------8B0CDA14F90897FA34117F09 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------8B0CDA14F90897FA34117F09 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

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

--------------8B0CDA14F90897FA34117F09--