git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Fix approxidate() to understand more extended numbers

From
Linus Torvalds <torvalds@osdl.org>
Date
Sep 29, 2006, 06:03 UTC
Message-ID
<Pine.LNX.4.64.0609282300190.3952@g5.osdl.org>
In-Reply-To
<118833cc0609281712u2ce01bc5r8f3e97ae9c9a749a@mail.gmail.com>
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).

That said, I have a rice cooker that avoids the problem by saying "0:10 PM" for ten minutes past midday ;)

Of course, all sane and civilized countries just use 24-hour format anyway. "Military time" my *ss.

Some day the US will turn metric and 24-hour-format. If the sun doesn't turn into a red giant first, that is.

		Linus
Previous: Morten WelinderNext: Junio C Hamano
Message 4 of 9 in “Clean up approxidate() in preparation for fixes”
  1. Linus TorvaldsSep 28, 2006
  2. Fix approxidate() to understand more extended numbersLinus Torvalds, Sep 28, 2006
  3. Morten WelinderSep 29, 2006
  4. Linus TorvaldsSep 29, 2006
  5. Junio C HamanoSep 29, 2006
  6. Linus TorvaldsSep 29, 2006
  7. Junio C HamanoSep 29, 2006
  8. Johannes SchindelinSep 29, 2006
  9. Linus TorvaldsSep 29, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.