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

Re: [PATCH 4/5] date: document and test "raw-local" mode

From
Jeff King <peff@peff.net>
Date
Jul 12, 2016, 00:16 UTC
Message-ID
<20160712001626.GC26163@sigill.intra.peff.net>
In-Reply-To
<20160711165000.GD3890@thunk.org>
On Mon, Jul 11, 2016 at 12:50:00PM -0400, Theodore Ts'o wrote:
Show 12 quoted lines
> On Mon, Jul 11, 2016 at 01:06:17AM -0400, Jeff King wrote:
> > 
> > The documentation claims that "raw-local" does not work. It
> > does, but the end result is rather subtle. Let's describe it
> > in better detail, and test to make sure it works (namely,
> > the epoch time doesn't change, but the zone does).
> 
> Maybe add an editorial statement that in most cases this isn't
> particularly useful?  Documenting raw-local implies that someone might
> want to consider using it, and it's not clear to me folks should ever
> try --- they're more likely to confuse themselves more than anything
> else.

I waffled on making such a statement. I agree it's unlikely to be that useful in practice. The most plausible scenario I could come up with is a program or script that asks for "--date=raw" because it's going to format the date later. Somebody using that program may prefer their local timestamps. Normally you'd just say "--date=iso-local" or whatever format you prefer, but because this is transiting through the other program which only understands --date=raw, you have to keep using that format.

I hoped that the explanation I added would prevent confusion, or at least be an improvement over the existing documentation of "doesn't work".

-Peff
Previous: Theodore Ts'oNext: Jeff King
Message 15 of 18 in “pretty: add format specifiers: %gr, %gt, %gI, gi”
  1. pretty: add format specifiers: %gr, %gt, %gI, giTheodore Ts'o, Jul 10, 2016
  2. Jeff KingJul 10, 2016
  3. Theodore Ts'oJul 10, 2016
  4. Duy NguyenJul 10, 2016
  5. Theodore Ts'oJul 10, 2016
  6. Jeff KingJul 11, 2016
  7. 1/5 doc/rev-list-options: clarify "commit@{Nth}" for "-g" optionJeff King, Jul 11, 2016
  8. 2/5 doc/rev-list-options: explain "-g" output formatsJeff King, Jul 11, 2016
  9. 3/5 doc/pretty-formats: describe index/time formats for %gdJeff King, Jul 11, 2016
  10. Theodore Ts'oJul 11, 2016
  11. Jeff KingJul 12, 2016
  12. Junio C HamanoJul 12, 2016
  13. 4/5 date: document and test "raw-local" modeJeff King, Jul 11, 2016
  14. Theodore Ts'oJul 11, 2016
  15. Jeff KingJul 12, 2016
  16. 5/5 date: add "unix" formatJeff King, Jul 11, 2016
  17. Theodore Ts'oJul 11, 2016
  18. Junio C HamanoJul 11, 2016

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.