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: zed991 <jt40407 <at> gmail.com>
To: 45695 <at> debbugs.gnu.org
Subject: bug#45695: Date does not work for dates before 1970
Date: Wed, 6 Jan 2021 17:34:01 +0100
[Message part 1 (text/plain, inline)]
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

Is there any fix for Windows?
[Message part 2 (text/html, inline)]

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.