Thread (1 message) 1 message, 1 author, 2018-02-23

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

From: Junio C Hamano <hidden>
Date: 2018-02-23 22:28:44

"Bernhard M. Wiedemann" [off-list ref] 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help