From: Junio C Hamano <gitster@pobox.com>
To: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
Cc: git@vger.kernel.org, Ben Walton <bdwalton@gmail.com>,
Matthias Urlichs <smurf@smurf.noris.de>,
Ryuichi Kokubo <ryu1kkb@gmail.com>
Subject: Re: [PATCH] Call timegm and timelocal with 4-digit year
Date: Fri, 23 Feb 2018 14:28:35 -0800 [thread overview]
Message-ID: <xmqqbmgfs5m4.fsf@gitster-ct.c.googlers.com> (raw)
In-Reply-To: <20180223172045.32090-1-bwiedemann@suse.de> (Bernhard M. Wiedemann's message of "Fri, 23 Feb 2018 18:20:45 +0100")
"Bernhard M. Wiedemann" <bwiedemann@suse.de> writes:
> 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.
next prev parent reply other threads:[~2018-02-23 22:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-23 17:20 [PATCH] Call timegm and timelocal with 4-digit year Bernhard M. Wiedemann
2018-02-23 22:28 ` Junio C Hamano [this message]
2018-02-24 22:28 ` Ævar Arnfjörð Bjarmason
2018-02-26 10:59 ` Bernhard M. Wiedemann
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqbmgfs5m4.fsf@gitster-ct.c.googlers.com \
--to=gitster@pobox.com \
--cc=bdwalton@gmail.com \
--cc=bwiedemann@suse.de \
--cc=git@vger.kernel.org \
--cc=ryu1kkb@gmail.com \
--cc=smurf@smurf.noris.de \
/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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).