GNU bug report logs - #45695
Date does not work for dates before 1970

Previous Next

Package: coreutils;

Reported by: zed991 <jt40407 <at> gmail.com>

Date: Wed, 6 Jan 2021 16:36:03 UTC

Severity: normal

Done: Bob Proulx <bob <at> proulx.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Philip Rowlands" <phr+coreutils <at> dimebar.com>
To: zed991 <jt40407 <at> gmail.com>, 45695 <at> debbugs.gnu.org
Subject: bug#45695: Date does not work for dates before 1970
Date: Wed, 06 Jan 2021 22:51:49 +0000
On Wed, 6 Jan 2021, at 16:34, zed991 wrote:
> On linux, I can use  date +%s --date "31 Dec 1969"
> The result is -90000
> A negative number
> 
> But when I try it on Windows (using GNUWin32) it gives me an error -
> "invalid date"
> 
> I downloaded date for windows from this link -
> http://gnuwin32.sourceforge.net/packages/coreutils.htm

That specific page refers to coreutils 5.3.0, which was published in 2005. The gnuwin32 website in general doesn't appear to have been updated in over 10 years.

My personal recommendation to run coreutils on Windows is WSL2, but there are other options (cygwin etc.)

Cheers,
Phil




This bug report was last modified 4 years and 131 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.