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

Re: [PATCH 2/2] Document date formats accepted by parse_date()

From
Jeff King <peff@peff.net>
Date
Dec 2, 2009, 22:42 UTC
Message-ID
<20091202224206.GC9691@coredump.intra.peff.net>
In-Reply-To
<20091203073313.6117@nanako3.lavabit.com>
On Thu, Dec 03, 2009 at 07:33:13AM +0900, Nanako Shiraishi wrote:
> Is there something wrong with 'show'?
> 
>   nana.git% ./test-date show '2005-04-07T22:13:13'
>   2005-04-07T22:13:13 -> 40 years ago

No. It doesn't call parse_date, but instead accepts a time_t-like "seconds since epoch". I intentionally didn't use parse_date because I didn't want bugs in parse_date to affect 'show' output, to keep testing simple.

-Peff
Previous: Nanako ShiraishiNext: Junio C Hamano
Message 4 of 6 in “builtin-commit: add --date option”
  1. 1/2 builtin-commit: add --date optionMiklos Vajna, Dec 2, 2009
  2. 2/2 Document date formats accepted by parse_date()Miklos Vajna, Dec 2, 2009
  3. Nanako ShiraishiDec 2, 2009
  4. Jeff KingDec 2, 2009
  5. Junio C HamanoDec 2, 2009
  6. 2/2 Document date formats accepted by parse_date()Miklos Vajna, Dec 2, 2009

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.