Re: Fix approxidate() to understand more extended numbers

From: Junio C Hamano <junkio@cox.net>
Date: 2006-09-29 17:09:11
Linus Torvalds <torvalds@osdl.org> writes:

>> > I think 12pm is correct, but 12am probably isn't (12am should _subtract_ 
>> > 12, while 12pm does _not_ add 12).
>> 
>> But you have "if (hour > 0 && hour < 12)" in both am and pm so
>> assignment to tm would not trigger...
>
> That's not the point.
>
> If you write
>
> 	12:30 am
>
> you really _should_ subtract 12, leaving you with 0:30. We don't. So we 
> end up with a 24-hour time of 12:30, which is obviously _pm_, and wrong.
>
> And "12 am" or "12 pm" doesn't work at all.

Ah, that's what you meant.  My brain a bit too tired from the
day job tonight X-<.

>> > That said, I have a rice cooker that avoids the problem by saying "0:10 PM" 
>> > for ten minutes past midday ;)
>> 
>> You eat rice?
>
> Ok, is it just me, or is that just a very odd question?

Having rice cooker implied eating the stuff regularly and I just
did not expect that from a north european.  Just showing my
ignorance -- I've never been to Europe.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Sep 29 17:09:20 2006

This archive was generated by hypermail 2.1.8 : 2006-09-29 17:10:06 EST