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.