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

Re: [PATCH] date.c: print "1 second ago", not "1 seconds ago"

From
Øyvind A. Holm <sunny@sunbase.org>
Date
Apr 21, 2010, 06:28 UTC
Message-ID
<i2jc4c738cd1004202328hb58859f8ze9eb1858f5493c66@mail.gmail.com>
In-Reply-To
<4BCE977D.9040700@viscovery.net>
On 21 April 2010 08:13, Johannes Sixt <j.sixt@viscovery.net> wrote:
Show 7 quoted lines
> Am 4/21/2010 7:31, schrieb Øyvind A. Holm:
>> When using --date=relative, print "1 second ago" instead of "1 seconds
>> ago".
>
> Why do you care only about about "1 seconds", but not "1 minutes", "1
> hours", etc? I mean, "1 seconds ago" is the most unlikely case of them all
> that will happen in practice...
It will never show "1 minute", "1 hour", etc. Only
  - "89 minutes" → "2 hours"
  - "35 hours" → "2 days"
  - "13 days" → "2 weeks"
and so on. Seconds is the only thing left to fix.

Cheers, Øyvind A. Holm (sunny256)

Previous: Johannes SixtNext: Johannes Sixt
Message 3 of 4 in “date.c: print "1 second ago", not "1 seconds ago"”
  1. date.c: print "1 second ago", not "1 seconds ago"Øyvind A. Holm, Apr 21, 2010
  2. Johannes SixtApr 21, 2010
  3. Øyvind A. HolmApr 21, 2010
  4. Johannes SixtApr 21, 2010

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.