From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 06 11:35:27 2021 Received: (at submit) by debbugs.gnu.org; 6 Jan 2021 16:35:27 +0000 Received: from localhost ([127.0.0.1]:45352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxBmR-00034f-1c for submit@debbugs.gnu.org; Wed, 06 Jan 2021 11:35:27 -0500 Received: from lists.gnu.org ([209.51.188.17]:46042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxBlK-00032Y-4f for submit@debbugs.gnu.org; Wed, 06 Jan 2021 11:34:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxBlJ-0004YW-TI for bug-coreutils@gnu.org; Wed, 06 Jan 2021 11:34:17 -0500 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:37406) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxBlI-0000eo-5J for bug-coreutils@gnu.org; Wed, 06 Jan 2021 11:34:17 -0500 Received: by mail-pj1-x1034.google.com with SMTP id b5so1862910pjk.2 for ; Wed, 06 Jan 2021 08:34:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=CSjmQX3IVW3SDURo4WY72KzZYeYTOzqbNVT9c/X8FBw=; b=B0alLBCyocDt3+kqP3rQSGynQz5Hlhn63hpriQ38P3A8XhByKqzojwdhovU6VyEptC ASi8FJ4HcpGD9GAgRBVkjcEEEsSBei8hNKPg9iQr9aCcmBXRMfFAhxiHfztXJaSnBzM4 luKFVazItJ9TVxno6cBud/vh4nJdZ2zRKlBPNN9UkxQE1UZEeeWN+xvL2cu9ckSDRTz7 PZl6ULyt6R2X/2ivfbCFu0EGABUKbIf/zjZQfM0RcE3pb6BSsuiWnMUrGDJYC1JWinAw 2p/Bw4ZK4qWX8PizVfakMfqAWf8hOJTXW+rWhazrD5pHIykavk9hU9Yz2IVwWCdoeHBu LAGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=CSjmQX3IVW3SDURo4WY72KzZYeYTOzqbNVT9c/X8FBw=; b=LIkuNgWEQiLRk8qI28O9MBDZA6BD7GgOHPtcPpjdrgDEJcPQU/1pABMQgz7ck+Oen8 pt360ULO6AMJi4ZjBcZTMxTwhSFiqn4TqrvtV6ZcBO/sYoM0QwP91oXD+9KrxBhONZb3 FYs0qhFYnVg0UjSRcke/gewBH69g2+n7HX5IX2qwKDNJH3jlBfkUq5BCLHOV4k/Ja/yX 6Xf3b0d8g/3UcZgqRFbJCJDuXS2vcm+/L8FydvfAWaMdwK5O5dlTf+ZVciX9+SKYCi1v Z6VA5Wcf9OutgOP1UY4wH7sJosY8dSUCvSM2ZfjjisA2WXuo5tK/kI1OS6RW+qbQmzy4 D+nw== X-Gm-Message-State: AOAM530VphkGceevwtsROIVx6kBAbliEMo+9l1IvyGZr7xStWLUyvdsY kswOL2d8W2SMCVGw0QQPIYDTNHxe7s5MUeZjE60rG0Vb6/q2Sg== X-Google-Smtp-Source: ABdhPJwsjZrgbGigFkaqOVuT6rZBXps4y7UbNkcR7Gn/5DCifUH/k2jZubc0TxSFi0p37UNzsZ53Q0oTiI8vUZikRcE= X-Received: by 2002:a17:90a:3ee3:: with SMTP id k90mr4992765pjc.164.1609950853871; Wed, 06 Jan 2021 08:34:13 -0800 (PST) MIME-Version: 1.0 From: zed991 Date: Wed, 6 Jan 2021 17:34:01 +0100 Message-ID: Subject: Date does not work for dates before 1970 To: bug-coreutils@gnu.org Content-Type: multipart/alternative; boundary="000000000000c03c5905b83de408" Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=jt40407@gmail.com; helo=mail-pj1-x1034.google.com X-Spam_score_int: 1 X-Spam_score: 0.1 X-Spam_bar: / X-Spam_report: (0.1 / 5.0 requ) BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 06 Jan 2021 11:35:26 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) --000000000000c03c5905b83de408 Content-Type: text/plain; charset="UTF-8" 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? --000000000000c03c5905b83de408 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On linux, I can use=C2=A0 date +%s --date "31 Dec 1969"
The result is -900= 00
A negative number

Bu= t when I try it on Windows (using GNUWin32) it gives me an error - "in= valid date"

I downloaded date for windows fro= m this link - http://gnuwin32.sourceforge.net/packages/coreutils.htm
=
Is there any fix for Windows?=C2=A0=C2=A0
--000000000000c03c5905b83de408-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 06 17:53:08 2021 Received: (at 45695) by debbugs.gnu.org; 6 Jan 2021 22:53:08 +0000 Received: from localhost ([127.0.0.1]:45850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxHfv-00066x-SF for submit@debbugs.gnu.org; Wed, 06 Jan 2021 17:53:08 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:55541) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxHfu-00066O-0Q for 45695@debbugs.gnu.org; Wed, 06 Jan 2021 17:53:07 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id F206F1414; Wed, 6 Jan 2021 17:52:59 -0500 (EST) Received: from imap1 ([10.202.2.51]) by compute3.internal (MEProxy); Wed, 06 Jan 2021 17:53:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dimebar.com; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm2; bh=rhpGTVBaCOGE11/Rvq9whwhmlMnOgP6 Vw62SQKlFRKQ=; b=g+eIPQHVET+KFhlOw+isYUe1e0gu0V6J5kV1kl9Gb32Qyjz lsF+m35rKnIcWfcRTePrTOzer4H6rCjoYCRe9KPtaNlStg6cH2gBI4a1XLzLbsk8 M+0B/xDGbpfiXCpNcPMPPu2h9vh6yVPF757bicSKoL3wUlKE422a1iRmyTJyu5lB ObW6nfpbjIA9k6qZcMiRiFzENiBhHM/r38zA30umeGu/0ngP9daS4BVITtatFSAy jd7ICJTsY9CLEVoHC9Di+awm9qDqwEWXdm0VgEN9xRipQScB+E/emFZocMQ5MCrY bMRDoXGrBoxWmYgX5KI1ICcT7dzjms+20K1mgUg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=rhpGTV BaCOGE11/Rvq9whwhmlMnOgP6Vw62SQKlFRKQ=; b=UZ9ow28l22YDsktnmbUkrC icRkRKqMCM+EFVJdLeaB1hOOMUxXJpmKFaJhBcfpVqylbUgM1++9fXm8cA9Qqb3P zuD2cJAQd025gqMxUzdlCOiDATGSaKuZGsz8NnGuht3SvxoMAqT94ADKSsCBlPlU 04sUc3QRCtsiTBV7XrmZLnm2tRHWy+EfTozADJvwdDlQnLfh0LrQyO1a/GHrdH+4 uDWGaCCxcU6P9Y+FJ+AKggiLpXR8Y3AnOHNal1r0Y9sLxQLvHh81ii37r/31VBqk FV8qu4RVQGoIyfVJ92CsnGdAkK4CyWQ4Ipr4cKVRLNJmXT6YE+tSLugEyZsr8+9Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdegtddgjedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpedfrfhhihhlihhpucftohiflhgrnhgushdfuceophhhrhdo tghorhgvuhhtihhlshesughimhgvsggrrhdrtghomheqnecuggftrfgrthhtvghrnheple ehffekhedthfdvfeethfetjeekhffgffdtudehtdetveffueeuleegleejvedtnecuffho mhgrihhnpehsohhurhgtvghfohhrghgvrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepphhhrhdotghorhgvuhhtihhlshesughimhgv sggrrhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id E341FC200A5; Wed, 6 Jan 2021 17:52:59 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.1-61-gb52c239-fm-20201210.001-gb52c2396 Mime-Version: 1.0 Message-Id: <9e1e260d-fe10-4a5d-8ce1-c6d4a1e0697f@www.fastmail.com> In-Reply-To: References: Date: Wed, 06 Jan 2021 22:51:49 +0000 From: "Philip Rowlands" To: zed991 , 45695@debbugs.gnu.org Subject: Re: bug#45695: Date does not work for dates before 1970 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45695 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 12 18:59:57 2021 Received: (at 45695-done) by debbugs.gnu.org; 12 Jan 2021 23:59:57 +0000 Received: from localhost ([127.0.0.1]:33730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzTZs-0003jg-PO for submit@debbugs.gnu.org; Tue, 12 Jan 2021 18:59:57 -0500 Received: from havoc.proulx.com ([96.88.95.61]:50562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzTZp-0003jQ-Io for 45695-done@debbugs.gnu.org; Tue, 12 Jan 2021 18:59:55 -0500 Received: from joseki.proulx.com (localhost [127.0.0.1]) by havoc.proulx.com (Postfix) with ESMTP id CEC4A553; Tue, 12 Jan 2021 16:59:47 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proulx.com; s=dkim2048; t=1610495987; bh=j3X7VVwruC4HWQUiaDbsYE6KEE8zchLlqB7fGNIli8Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lsCnHvyZoN9OkoWc/WsNo0XI6mNIh3sk3FMkWHGk1mnyxFQ6TPpx5RkhqhX8fxlLL BiP8LEUdxiAeoW6a552qze5xCh/VE75eL9D5slaZFXrHMZFZ6CN4/abGd5fjofUpS5 rTOcfj5lYGdYUNtWECwD7txGh/VRkCwHzPS7eCKfZvrdIUUpIE3+01nlCdEJXLfoxX M+XuuqmJdMq8gzIUfd+Q/jnqQwUdaLV0RfGGZ3ZHNNRJ9nj9kCWz9g+S4uLPCP/35R D02NEDfVTtZYjuskQhjFS01/Tf6rN5B2WoLAK/jwqNyXWCK3X57rWjXQsvE6ocuzvA YBRdNhnGQ3VlA== Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 9120921152; Tue, 12 Jan 2021 16:59:47 -0700 (MST) Received: by hysteria.proulx.com (Postfix, from userid 1000) id 715A02DC9C; Tue, 12 Jan 2021 16:59:47 -0700 (MST) Date: Tue, 12 Jan 2021 16:59:47 -0700 From: Bob Proulx To: zed991 Subject: Re: bug#45695: Date does not work for dates before 1970 Message-ID: <20210112165021159282166@bob.proulx.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45695-done Cc: 45695-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) zed991 wrote: > On linux, I can use date +%s --date "31 Dec 1969" > The result is -90000 > A negative number Which is correct for dates before the 0 time: Thu, 01 Jan 1970 00:00:00 +0000 https://en.wikipedia.org/wiki/Unix_time > 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? According to that page the last update of the GnuWin project was 2015-05-20 therefore one might think that project is no longer updating now more than five years later. Perhaps it would be good to look for a different MS-Windows port of the software? The usual recommendation is to install Cygwin which generally is a more reliable port of the software. Although I understand that it might be a little heavy for many users. But whichever port to Microsoft you find look to see that it has been updated in the last few years. Generally the GNU Project is all about the source and use on Free(dom) Software systems. Generally most of us are not using Microsoft and therefore it makes it hard for us to help. It really needs a Microsoft person to champion the cause and to keep that system updated. Since this is not a bug in the GNU Coreutils software itself but in the windows port of it I am going to go ahead and close the ticket with this message. But if you have updates about this please send an update to the bug ticket as it would help us know what to say in the future to other Microsoft users. And other people searching the archive will benefit from your experience with it. Bob From unknown Mon Aug 18 14:23:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 10 Feb 2021 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator