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

Re: [BUG] internal date format does not accept small unix timestamps

From
Junio C Hamano <gitster@pobox.com>
Date
May 29, 2026, 22:52 UTC
Message-ID
<xmqq7bolg762.fsf@gitster.g>
In-Reply-To
<08a04d91-af90-44dd-b28f-f3d5b9e77413@luna.gl>
Luna Schwalbe <dev@luna.gl> writes:
Show 8 quoted lines
>  > Apparently you need `@` in front for small Unix Epoch values. `@0 +0000`
>
> That is wonderful, thank you so much, I somehow did not find this small 
> detail anywhere.
>
> Maybe it could be added to Documentation/date-formats.adoc?
>
> Luna
Good suggestion.

This was introduced in 116eb3ab (parse_date(): allow ancient git-timestamp, 2012-02-02) and 2c733fb2 (parse_date(): '@' prefix forces git-timestamp, 2012-02-02) to allow specifying "ancient" timestamps (like 0 +0000) without conflicting with YYYYMMDD date formats. I do not think neither commit added documentation for this '@' prefix, and Documentation/date-formats would be an excellent place to do so.

Care to whip up a patch?
Thanks.
Previous: Luna SchwalbeNext: Junio C Hamano
Message 4 of 6 in “[BUG] internal date format does not accept small unix timestamps”
  1. Luna SchwalbeMay 29, 2026
  2. Kristoffer HaugsbakkMay 29, 2026
  3. Luna SchwalbeMay 29, 2026
  4. Junio C HamanoMay 29, 2026
  5. doc: document '@' prefix for raw timestampsJunio C Hamano, May 30, 2026
  6. Luna SchwalbeMay 31, 2026

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.