Your message dated Sun, 18 Oct 2009 13:11:51 +0200
with message-id <[email protected]>
and subject line Re: Bug#551378: Confusing "date" output with "00:00:01 AM"
has caused the Debian Bug report #551378,
regarding Confusing "date" output with "00:00:01 AM"
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
551378: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=551378
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: coreutils
Version: 6.10-6
Severity: normal

Hello Maintainer,

I have a problem which create errors with date.

Is it right, that the 24h time 

    2009-10-19 00:00:01

which is one second after midnight, is realy

    2009-10-19 00:00:01 AM

in US-TIME format?

For me as I have learned in school for 30 years, the  AM  time  is  from
00:00:00 in the morning to  11:59:59  noon  and  the  PM  time  is  from
12:00:00 to 23:59:59 midnight.

The output of "date" is realy confusing.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


--- End Message ---
--- Begin Message ---
Hello Bob,

thanks for the clarification.

Now I have to rewrite a bunch of
scripts on the intranet servers.

I close the bug now.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant



Am 2009-10-18 00:24:51, schrieb Bob Proulx:
> Hello Michelle,
> 
> Michelle Konzack wrote:
> > thank you for your answer, but if I use
> >     date --date="2009-10-19 00:00:01 AM" --rfc-822
> > I get the error:
> >     date: invalid date `2009-10-19 00:00:01 AM'
> 
> Ah...  I misunderstood your question.  Sorry about that.  I had
> thought you were asking if 00:00:01 was AM or PM and not whether date
> should parse it.
> 
> With this clarification first I would say that I would not consider
> "2009-10-19 00:00:01 AM" to be a valid US time string with a "00" hour
> and followed by "AM" or "PM".  The "00" would only be seen with
> 24-hour time and 24-hour time never has a AM/PM qualifier.  Although
> times written by people have a large poetic license for creative
> constructs and people can sometimes be very creative.  :-)
> 
> In regards to date parsing, in the GNU Coreutils date manual in the
> "Time of day items" node it says:
> 
>      If the time is followed by `am' or `pm' (or `a.m.' or `p.m.'), HOUR
>   is restricted to run from 1 to 12, and `:MINUTE' may be omitted (taken
>   to be zero).  `am' indicates the first half of the day, `pm' indicates
>   the second half of the day.  In this notation, 12 is the predecessor of
>   1: midnight is `12am' while noon is `12pm'.  (This is the zero-oriented
>   interpretation of `12am' and `12pm', as opposed to the old tradition
>   derived from Latin which uses `12m' for noon and `12pm' for midnight.)
> 
> This is why an hour of "00" is invalid when followed by "AM" but "01"
> is okay.  It should be "12" in that "00" case.
> 
>   $ date --date="2009-10-19 12:00:01 AM" --rfc-822
>   Mon, 19 Oct 2009 00:00:01 -0600
> 
> Does that satisfactorily resolve the issue?
> 
> Bob


------------------------ END OF REPLIED MESSAGE ------------------------







-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


--- End Message ---

Reply via email to