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

Re: [PATCH] do not use locale specific strftime when preparing 2822 date

From
Junio C Hamano <junkio@cox.net>
Date
Jul 7, 2006, 19:25 UTC
Message-ID
<7vveq9w736.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<e8mb4l$t1u$1@sea.gmane.org>
Jakub Narebski <jnareb@gmail.com> writes:
Show 6 quoted lines
> It looks like it is _almost_ correct. It should be
>   Date: Fri, 07 Jul 2006 20:57:55 +0200
> instead of
>   Date: Fri,  7 Jul 2006 20:57:55 +0200
>
> It is "day = ([FWS] 1*2DIGIT) / obs-day" in RFC2822.

I think you are reading ABNF wrong. <a>*<b>element means at least <a> times and at most <b> times occurrences of element. Exact number of repetition is written as <n>element (which is a short-and for <n>*<n>element).

See the definition of "hour" and friends a few lines below what you quoted. It is defined as "2DIGIT / obs-hour" and that is why we say "01:23:45" not "1:23:45"

Previous: Jakub NarebskiNext: Jakub Narebski
Message 6 of 9 in “Strange date format in git-send-email”
  1. Martijn KuipersJul 5, 2006
  2. Jakub NarebskiJul 5, 2006
  3. Junio C HamanoJul 5, 2006
  4. do not use locale specific strftime when preparing 2822 dateJakub Narebski, Jul 7, 2006
  5. Jakub NarebskiJul 7, 2006
  6. Junio C HamanoJul 7, 2006
  7. Jakub NarebskiJul 7, 2006
  8. Junio C HamanoJul 7, 2006
  9. Jakub NarebskiJul 7, 2006

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.