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

Re: [Bug] git-log prints wrong unixtime with --date=format:%s

From
Michael Heerdegen <michael_heerdegen@web.de>
Date
May 18, 2016, 23:05 UTC
Message-ID
<87r3cz55mv.fsf@web.de>
In-Reply-To
<20160518174919.GA5796@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
>   3. The epoch times for the latter lines should match.

FWIW, I think the epoch time is the most practical way to transfer the time of a commit into a different program. When this program wants to do it's own date arithmetic with it, unix time is just nice (no time format parsing needed).

That's why it would be good if the unix time values could be relied on.
Conclusion: in addition to 3., I wished both epoch times were also
correct per se.
Regards,
Michael.
Previous: Jeff KingNext: Jeff King
Message 9 of 12 in “[Bug] git-log prints wrong unixtime with --date=format:%s”
  1. Michael HeerdegenMay 16, 2016
  2. Michael HeerdegenMay 17, 2016
  3. Jeff KingMay 18, 2016
  4. Jeff KingMay 18, 2016
  5. Junio C HamanoMay 18, 2016
  6. Randall S. BeckerMay 18, 2016
  7. Jeff KingMay 18, 2016
  8. Jeff KingMay 18, 2016
  9. Michael HeerdegenMay 18, 2016
  10. Jeff KingMay 19, 2016
  11. Michael HeerdegenMay 19, 2016
  12. Michael HeerdegenMay 18, 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.