From: Junio C Hamano <gitster@pobox.com>
To: Luna Schwalbe <dev@luna.gl>
Cc: Kristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>,
git@vger.kernel.org
Subject: Re: [BUG] internal date format does not accept small unix timestamps
Date: Sat, 30 May 2026 07:52:37 +0900 [thread overview]
Message-ID: <xmqq7bolg762.fsf@gitster.g> (raw)
In-Reply-To: <08a04d91-af90-44dd-b28f-f3d5b9e77413@luna.gl> (Luna Schwalbe's message of "Fri, 29 May 2026 16:52:38 +0200")
Luna Schwalbe <dev@luna.gl> writes:
> > 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.
next prev parent reply other threads:[~2026-05-29 22:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-29 11:51 [BUG] internal date format does not accept small unix timestamps Luna Schwalbe
2026-05-29 12:50 ` Kristoffer Haugsbakk
2026-05-29 14:52 ` Luna Schwalbe
2026-05-29 22:52 ` Junio C Hamano [this message]
2026-05-30 7:43 ` doc: document '@' prefix for raw timestamps Junio C Hamano
2026-05-31 8:29 ` Luna Schwalbe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqq7bolg762.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=dev@luna.gl \
--cc=git@vger.kernel.org \
--cc=kristofferhaugsbakk@fastmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox