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

Re: [PATCH] Pretty-print date in 'git log'

From
RLRay Lee <ray-lk@madrabbit.org>
Date
Apr 18, 2005, 19:02 UTC
Message-ID
<1113850922.23938.54.camel@orca.madrabbit.org>
In-Reply-To
<1113803220.11910.81.camel@localhost.localdomain>
On Mon, 2005-04-18 at 15:46 +1000, David Woodhouse wrote:
> Add tool to render git's "<utcseconds> <zone>" into an RFC2822-compliant
> string, because I don't think date(1) can do it.

I admit it's not obvious, but date(1) includes gnu's full date parser, so you can pull stunts like:

ray:~/work/home$ date -ud 'jan 1, 1970 + 1111111111 seconds' Fri Mar 18 01:58:31 UTC 2005 ray:~/work/home$ date -ud 'jan 1, 1970 + 1111111111 seconds + 0800' Fri Mar 18 09:58:31 UTC 2005

Ray
Previous: David WoodhouseNext: Sanjoy Mahajan
Message 2 of 3 in “Pretty-print date in 'git log'”
  1. Pretty-print date in 'git log'David Woodhouse, Apr 18, 2005
  2. Ray LeeApr 18, 2005
  3. Sanjoy MahajanApr 18, 2005

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.