Re: Fix approxidate() to understand more extended numbers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Linus Torvalds <torvalds@xxxxxxxx> writes:

> On Thu, 28 Sep 2006, Morten Welinder wrote:
>>
>> Just don't hack at 12am or 12pm.
>
> 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 said, I have a rice cooker that avoids the problem by saying "0:10 PM" 
> for ten minutes past midday ;)

You eat rice?

> Of course, all sane and civilized countries just use 24-hour format 
> anyway.

You are referring to the US, but neither is Japan sane nor
civilized ;-).

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]