all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Midnight and noon in agendas
@ 2006-06-01 23:36 Daniel J. Sinder
  2006-06-02  5:15 ` Carsten Dominik
  0 siblings, 1 reply; 11+ messages in thread
From: Daniel J. Sinder @ 2006-06-01 23:36 UTC (permalink / raw)
  To: emacs-orgmode

I've noticed that '12pm' when used as a time-of-day specification
puts an entry at 24:00 in the agenda.  '12am' places the item at
noon in the agenda.

It is arguable whether 00:00 should be used instead of 24:00.
Personally, I prefer it the way it is, where midnight events are
placed at 24:00 because if I have something scheduled/due at
midnight, I'd like to see it on the agenda for the day *preceding*
the event/item.

However, the issue I differ on is the interpretation of 12am as noon
and 12pm as midnight.  Although they are both ambiguous, it seems
that 12am is more typically associated with midnight, while 12pm is
associated with noon.  One explanation goes like this:  Since the
24-hour clock runs from 00:00:00--23:59:59, then 00:00:00-11:59:59
is AM and 12:00:00-23:59:59 is PM.

Just curious....is the current mapping a deliberate choice or a bug?

Dan

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

* Re: Midnight and noon in agendas
  2006-06-01 23:36 Midnight and noon in agendas Daniel J. Sinder
@ 2006-06-02  5:15 ` Carsten Dominik
  2006-06-02 13:18   ` Jason F. McBrayer
                     ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Carsten Dominik @ 2006-06-02  5:15 UTC (permalink / raw)
  To: Daniel J. Sinder; +Cc: emacs-orgmode

Well, if this is the way things are normally interpreted,
then this is clearly a bug.  Thanks for explaining this to me.
Strange system.  Switching am to pm always makes the event happen 
later, except when the hour is 12.

However, I will not make items jump days because of a time 
specification.  This has first of all technical reasons:  Agenda 
entries are collected based on the date only. The time-of-day 
specification is only used later in the process to sort the entries on 
the day.  So given this restriction, what would you or other people 
here want:

Should 12am be listed as 0:00 or as 24:00?
Should 12:21am be listed as 0:21 or as 24:21?

It seems to me that the logic would be a bit better to schedule these 
show uo as 0:00 and 0:21.  If you wanted to put something at midnight 
at the end of the day you would then have to use 24:00 and 24:21.

Opinions?

- Carsten

On Jun 2, 2006, at 1:36, Daniel J. Sinder wrote:

> I've noticed that '12pm' when used as a time-of-day specification
> puts an entry at 24:00 in the agenda.  '12am' places the item at
> noon in the agenda.
>
> It is arguable whether 00:00 should be used instead of 24:00.
> Personally, I prefer it the way it is, where midnight events are
> placed at 24:00 because if I have something scheduled/due at
> midnight, I'd like to see it on the agenda for the day *preceding*
> the event/item.
>
> However, the issue I differ on is the interpretation of 12am as noon
> and 12pm as midnight.  Although they are both ambiguous, it seems
> that 12am is more typically associated with midnight, while 12pm is
> associated with noon.  One explanation goes like this:  Since the
> 24-hour clock runs from 00:00:00--23:59:59, then 00:00:00-11:59:59
> is AM and 12:00:00-23:59:59 is PM.
>
> Just curious....is the current mapping a deliberate choice or a bug?
>
> Dan
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

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

* Re: Midnight and noon in agendas
  2006-06-02  5:15 ` Carsten Dominik
@ 2006-06-02 13:18   ` Jason F. McBrayer
  2006-06-02 14:02   ` J. David Boyd
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 11+ messages in thread
From: Jason F. McBrayer @ 2006-06-02 13:18 UTC (permalink / raw)
  To: emacs-orgmode

On Fri, 2006-06-02 at 07:15 +0200, Carsten Dominik wrote:

> It seems to me that the logic would be a bit better to schedule these 
> show uo as 0:00 and 0:21.  If you wanted to put something at midnight 
> at the end of the day you would then have to use 24:00 and 24:21.
> 
> Opinions?

That's probably the best way to do it.  Users should probably be
responsible for scheduling things on the correct day --- either 23:59
one day or 0:00 the next.

-- 
+-----------------------------------------------------------+
| Jason F. McBrayer                    jmcbray@carcosa.net  |
| A flower falls, even though we love it; and a weed grows, |
| even though we do not love it.            -- Dogen        |

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

* Re: Midnight and noon in agendas
  2006-06-02  5:15 ` Carsten Dominik
  2006-06-02 13:18   ` Jason F. McBrayer
@ 2006-06-02 14:02   ` J. David Boyd
  2006-06-02 14:11   ` Michael Olson
  2006-06-02 19:45   ` Daniel J. Sinder
  3 siblings, 0 replies; 11+ messages in thread
From: J. David Boyd @ 2006-06-02 14:02 UTC (permalink / raw)
  To: emacs-orgmode

Carsten Dominik <dominik@science.uva.nl> writes:

>
> Should 12am be listed as 0:00 or as 24:00?
> Should 12:21am be listed as 0:21 or as 24:21?
>

I vote for 0:00 and 0:21

Dave in Largo, FL

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

* Re: Midnight and noon in agendas
  2006-06-02  5:15 ` Carsten Dominik
  2006-06-02 13:18   ` Jason F. McBrayer
  2006-06-02 14:02   ` J. David Boyd
@ 2006-06-02 14:11   ` Michael Olson
  2006-06-02 14:24     ` Carsten Dominik
  2006-06-02 19:45   ` Daniel J. Sinder
  3 siblings, 1 reply; 11+ messages in thread
From: Michael Olson @ 2006-06-02 14:11 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 692 bytes --]

Carsten Dominik <dominik@science.uva.nl> writes:

> It seems to me that the logic would be a bit better to schedule these
> show uo as 0:00 and 0:21.  If you wanted to put something at midnight
> at the end of the day you would then have to use 24:00 and 24:21.
>
> Opinions?

That would have the nice effect of giving people more hours in a day.
I'm sure everyone could use that.  :^)

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Emacs Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net
  /` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG
 |_] | \| |_| Project involvement: Emacs, Muse, Planner, ERC, EMMS

[-- Attachment #1.2: Type: application/pgp-signature, Size: 190 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Re: Midnight and noon in agendas
  2006-06-02 14:11   ` Michael Olson
@ 2006-06-02 14:24     ` Carsten Dominik
  2006-06-02 17:24       ` Christian Schlauer
  0 siblings, 1 reply; 11+ messages in thread
From: Carsten Dominik @ 2006-06-02 14:24 UTC (permalink / raw)
  To: Michael Olson; +Cc: emacs-orgmode


On Jun 2, 2006, at 16:11, Michael Olson wrote:

> Carsten Dominik <dominik@science.uva.nl> writes:
>
>> It seems to me that the logic would be a bit better to schedule these
>> show uo as 0:00 and 0:21.  If you wanted to put something at midnight
>> at the end of the day you would then have to use 24:00 and 24:21.
>>
>> Opinions?
>
> That would have the nice effect of giving people more hours in a day.
> I'm sure everyone could use that.  :^)


Yes, indeed a funny effect.  However, it can be useful to schedule 
something at 24:21 or even at 26:00 or so.  because if you put such a 
date on your agenda for the next day, you might find out too late....

- Carsten

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

* Re: Midnight and noon in agendas
  2006-06-02 14:24     ` Carsten Dominik
@ 2006-06-02 17:24       ` Christian Schlauer
  2006-06-02 20:46         ` Carsten Dominik
  0 siblings, 1 reply; 11+ messages in thread
From: Christian Schlauer @ 2006-06-02 17:24 UTC (permalink / raw)
  To: emacs-orgmode

Carsten Dominik <dominik@science.uva.nl> writes:

> However, it can be useful to schedule something at 24:21 or even at
> 26:00 or so. because if you put such a date on your agenda for the
> next day, you might find out too late....

I see the problem, but I don't like these time formats at all. I'd
prefer if the agenda would show me things that are scheduled "early"
the next day (before 06:00, for example, should be configurable) on
the previous day already (and on the actual day).

Also, 26:00 is against the rules ;-)

,----[ http://en.wikipedia.org/wiki/ISO_8601 ]
| hh refers to an hour between 00 and 24, where 24 is only used to
| notate the midnight at the end of a calendar date
`----

,----[ http://en.wikipedia.org/wiki/24-hour_clock#Midnight_00:00_and_24:00 ]
| Time-of-day notations beyond 24:00 (such as 24:01 or 25:59) are
| neither commonly used nor covered by any relevant standards,
| although they have been seen on rare occasions in Japan.
`----

-- 
Christian Schlauer

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

* Re: Midnight and noon in agendas
  2006-06-02  5:15 ` Carsten Dominik
                     ` (2 preceding siblings ...)
  2006-06-02 14:11   ` Michael Olson
@ 2006-06-02 19:45   ` Daniel J. Sinder
  2006-06-02 20:51     ` Carsten Dominik
  3 siblings, 1 reply; 11+ messages in thread
From: Daniel J. Sinder @ 2006-06-02 19:45 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode


Carsten Dominik wrote:
> Well, if this is the way things are normally interpreted,
> then this is clearly a bug.  Thanks for explaining this to me.
> Strange system.  Switching am to pm always makes the event happen later, 
> except when the hour is 12.

If 12am/00:00 is considered the start of the day, then the rule
holds -- switching 12am to 12pm makes the event later that same day,
at noon.

> Should 12am be listed as 0:00 or as 24:00?
> Should 12:21am be listed as 0:21 or as 24:21?
> 
> It seems to me that the logic would be a bit better to schedule these 
> show uo as 0:00 and 0:21.  If you wanted to put something at midnight at 
> the end of the day you would then have to use 24:00 and 24:21.

I like this idea (allowing times at 24:00 and beyond).  The user can
place things where they want: at the start or end of the day.  As a
bonus, if you work the night shift, you'll be able to see your daily
agenda all under one date at the start of your shift.

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

* Re: Re: Midnight and noon in agendas
  2006-06-02 17:24       ` Christian Schlauer
@ 2006-06-02 20:46         ` Carsten Dominik
  2006-06-03  9:35           ` Christian Schlauer
  0 siblings, 1 reply; 11+ messages in thread
From: Carsten Dominik @ 2006-06-02 20:46 UTC (permalink / raw)
  To: cs-usenet; +Cc: emacs-orgmode

Hi Christian,

thanks for pointing to the relevant standards.

On Jun 2, 2006, at 19:24, Christian Schlauer wrote:
>
> I see the problem, but I don't like these time formats at all. I'd
> prefer if the agenda would show me things that are scheduled "early"
> the next day (before 06:00, for example, should be configurable) on
> the previous day already (and on the actual day).

I agree that this would be nice, but because the technical way in which 
the agenda is constructed, this would be hard to implement.  The way it 
works is like this:

1. The agenda collects all entries for the given date.
2. The it checks if the entry specifies a time-of day in any way.  
Org-mode is very tolerant in this.  Times may be specified as part of a 
timestamp, but also in many free-format ways.

To implement what you ask for, I would have to collect entries for two 
different dates, check for times, throw away the ones with the second 
date and either not time at all, or a time larger than your limit.  All 
this is possible, but has significant overhead.  The purpose of the 
week agenda is to show entries of the next day at least in close 
proximity to entries of the current day.

Still, this is a good idea, and I will put it on my todo list, 
scheduled for a long winter day evening :-)

> Also, 26:00 is against the rules ;-)

That is certainly true, but I see no reason to explicitly forbid them.  
This is something that can be easily left at a users discretion, don't 
you agree?

- Carsten



--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

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

* Re: Midnight and noon in agendas
  2006-06-02 19:45   ` Daniel J. Sinder
@ 2006-06-02 20:51     ` Carsten Dominik
  0 siblings, 0 replies; 11+ messages in thread
From: Carsten Dominik @ 2006-06-02 20:51 UTC (permalink / raw)
  To: Daniel J. Sinder; +Cc: emacs-orgmode


On Jun 2, 2006, at 21:45, Daniel J. Sinder wrote:
>
> If 12am/00:00 is considered the start of the day, then the rule
> holds -- switching 12am to 12pm makes the event later that same day,
> at noon.

Yes, you are right, of course.

>
>> Should 12am be listed as 0:00 or as 24:00?
>> Should 12:21am be listed as 0:21 or as 24:21?
>>
>> It seems to me that the logic would be a bit better to schedule these
>> show uo as 0:00 and 0:21.  If you wanted to put something at midnight 
>> at
>> the end of the day you would then have to use 24:00 and 24:21.
>
> I like this idea (allowing times at 24:00 and beyond).  The user can
> place things where they want: at the start or end of the day.  As a
> bonus, if you work the night shift, you'll be able to see your daily
> agenda all under one date at the start of your shift.

Thank you and the others on this thread for the input.
I am summarizing the result (at least what I extract of it):

- 12am is beginning of the day, same as 0:00
- 12pm is noon.
- Times like 24:13, 25:14, and even 13:12pm will be tolerated,
   mainly because the regular expression I have for finding times.
   matches them (it is something like [012]?[0-9].....
   The agenda will list such times after midnight.  You need to
   decide for yourself if this is more useful than confusing.
   The way these nonstandard times will show up in the agenda is:

     23:58
     23:59
     24:00
     +0:01
     +0:02
      ...

   The hard limit for this game is 29:59

- Carsten

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

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

* Re: Midnight and noon in agendas
  2006-06-02 20:46         ` Carsten Dominik
@ 2006-06-03  9:35           ` Christian Schlauer
  0 siblings, 0 replies; 11+ messages in thread
From: Christian Schlauer @ 2006-06-03  9:35 UTC (permalink / raw)
  To: emacs-orgmode

Carsten Dominik <dominik@science.uva.nl> writes:

> On Jun 2, 2006, at 19:24, Christian Schlauer wrote:
>> Also, 26:00 is against the rules ;-)
>
> That is certainly true, but I see no reason to explicitly forbid them.

Of course not! The "format" is unusual, but very useful.

> This is something that can be easily left at a users discretion, don't
> you agree?

I do. Also, I like how it will look in the agenda: "+h:mm".

-- 
Christian Schlauer

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

end of thread, other threads:[~2006-06-03  9:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-01 23:36 Midnight and noon in agendas Daniel J. Sinder
2006-06-02  5:15 ` Carsten Dominik
2006-06-02 13:18   ` Jason F. McBrayer
2006-06-02 14:02   ` J. David Boyd
2006-06-02 14:11   ` Michael Olson
2006-06-02 14:24     ` Carsten Dominik
2006-06-02 17:24       ` Christian Schlauer
2006-06-02 20:46         ` Carsten Dominik
2006-06-03  9:35           ` Christian Schlauer
2006-06-02 19:45   ` Daniel J. Sinder
2006-06-02 20:51     ` Carsten Dominik

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.