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

Re: [PATCH] Call timegm and timelocal with 4-digit year

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 23, 2018, 22:28 UTC
Message-ID
<xmqqbmgfs5m4.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20180223172045.32090-1-bwiedemann@suse.de>
"Bernhard M. Wiedemann" <bwiedemann@suse.de> writes:
Show 8 quoted lines
> amazingly timegm(gmtime(0)) is only 0 before 2020
> because perl's timegm deviates from GNU timegm(3) in how it handles years.
>
> man Time::Local says
>
>  Whenever possible, use an absolute four digit year instead.
>
> with a detailed explanation about ambiguity of 2-digit years above that.
That's amusing.  Will queue; thanks.
Previous: Bernhard M. WiedemannNext: Ævar Arnfjörð Bjarmason
Message 2 of 4 in “Call timegm and timelocal with 4-digit year”
  1. Call timegm and timelocal with 4-digit yearBernhard M. Wiedemann, Feb 23, 2018
  2. Junio C HamanoFeb 23, 2018
  3. Ævar Arnfjörð BjarmasonFeb 24, 2018
  4. Bernhard M. WiedemannFeb 26, 2018

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.