all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bug: Incorrect behaviour of org-schedule when defining a time interval [9.2.3 (9.2.3-17-g4df705-elpaplus @ /home/yantar92/.emacs.d/elpa/org-plus-contrib-20190513/)]
@ 2019-07-09  2:19 'Ihor Radchenko'
  2019-07-09  2:45 ` Matthew Piziak
  0 siblings, 1 reply; 4+ messages in thread
From: 'Ihor Radchenko' @ 2019-07-09  2:19 UTC (permalink / raw)
  To: emacs-orgmode


When defining a time interval using org-schedule, I can usually type
something like "2pm+2" and get "SCHEDULED: <2019-07-09 Tue
14:00-16:00>". However, typing "11pm+2" leads to incorrect behaviour.
The result is "SCHEDULED: <2019-07-09 Tue 23:00-25:00>", which is
obviously wrong.

Emacs  : GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit)
 of 2019-04-29
Package: Org mode version 9.2.3 (9.2.3-17-g4df705-elpaplus @ /home/yantar92/.emacs.d/elpa/org-plus-contrib-20190513/)

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

* Re: Bug: Incorrect behaviour of org-schedule when defining a time interval [9.2.3 (9.2.3-17-g4df705-elpaplus @ /home/yantar92/.emacs.d/elpa/org-plus-contrib-20190513/)]
  2019-07-09  2:19 Bug: Incorrect behaviour of org-schedule when defining a time interval [9.2.3 (9.2.3-17-g4df705-elpaplus @ /home/yantar92/.emacs.d/elpa/org-plus-contrib-20190513/)] 'Ihor Radchenko'
@ 2019-07-09  2:45 ` Matthew Piziak
  2019-07-09  3:01   ` Ihor Radchenko
  2019-07-23  2:41   ` Ihor Radchenko
  0 siblings, 2 replies; 4+ messages in thread
From: Matthew Piziak @ 2019-07-09  2:45 UTC (permalink / raw)
  To: 'Ihor Radchenko'; +Cc: emacs-orgmode


> obviously wrong

It's natural to think so, but my Org mode correctly interprets `Tue
25:00` as being equivalent to `Wed 01:00`. That includes agenda
scheduling filters.

This format is used in the real world sometimes too, especially for
things like TV showings that span across the midnight boundary, as in
your example.

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

* Re: Bug: Incorrect behaviour of org-schedule when defining a time interval [9.2.3 (9.2.3-17-g4df705-elpaplus @ /home/yantar92/.emacs.d/elpa/org-plus-contrib-20190513/)]
  2019-07-09  2:45 ` Matthew Piziak
@ 2019-07-09  3:01   ` Ihor Radchenko
  2019-07-23  2:41   ` Ihor Radchenko
  1 sibling, 0 replies; 4+ messages in thread
From: Ihor Radchenko @ 2019-07-09  3:01 UTC (permalink / raw)
  To: Matthew Piziak; +Cc: emacs-orgmode


Thanks for the clarification. I never saw this format earlier. 

Matthew Piziak <matthew.piziak@gmail.com> writes:

>> obviously wrong
>
> It's natural to think so, but my Org mode correctly interprets `Tue
> 25:00` as being equivalent to `Wed 01:00`. That includes agenda
> scheduling filters.
>
> This format is used in the real world sometimes too, especially for
> things like TV showings that span across the midnight boundary, as in
> your example.

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

* Re: Bug: Incorrect behaviour of org-schedule when defining a time interval [9.2.3 (9.2.3-17-g4df705-elpaplus @ /home/yantar92/.emacs.d/elpa/org-plus-contrib-20190513/)]
  2019-07-09  2:45 ` Matthew Piziak
  2019-07-09  3:01   ` Ihor Radchenko
@ 2019-07-23  2:41   ` Ihor Radchenko
  1 sibling, 0 replies; 4+ messages in thread
From: Ihor Radchenko @ 2019-07-23  2:41 UTC (permalink / raw)
  To: Matthew Piziak; +Cc: emacs-orgmode


> That includes agenda scheduling filters.
I recently tried to use the format. Actually, agenda fails to recognise
schedule interval like "SCHEDULED: <2019-07-23 Tue 23:00-29:00>". The
task is not shown in agenda view with error "org-duration-to-minutes:
Invalid duration format: "+5:00"".

The problem is reproducible with emacs -Q.

Best,
Ihor

Matthew Piziak <matthew.piziak@gmail.com> writes:

>> obviously wrong
>
> It's natural to think so, but my Org mode correctly interprets `Tue
> 25:00` as being equivalent to `Wed 01:00`. That includes agenda
> scheduling filters.
>
> This format is used in the real world sometimes too, especially for
> things like TV showings that span across the midnight boundary, as in
> your example.

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

end of thread, other threads:[~2019-07-23  2:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-09  2:19 Bug: Incorrect behaviour of org-schedule when defining a time interval [9.2.3 (9.2.3-17-g4df705-elpaplus @ /home/yantar92/.emacs.d/elpa/org-plus-contrib-20190513/)] 'Ihor Radchenko'
2019-07-09  2:45 ` Matthew Piziak
2019-07-09  3:01   ` Ihor Radchenko
2019-07-23  2:41   ` Ihor Radchenko

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.