delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/04/14/07:16:16

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 432D93988889
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=towo.net
Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo AT towo DOT net
Subject: Re: Cygwin DLL 3.2.0 (W10) Problem with touch (8.26) for old dates <
1970
To: cygwin AT cygwin DOT com
References: <603461978 DOT 103298236 DOT 1618396574434 DOT JavaMail DOT root AT zimbra76-e14 DOT priv DOT proxad DOT net>
From: Thomas Wolff <towo AT towo DOT net>
Message-ID: <c0aea8e5-9bcd-b481-d90c-7579c85a691d@towo.net>
Date: Wed, 14 Apr 2021 13:16:08 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.9.1
MIME-Version: 1.0
In-Reply-To: <603461978.103298236.1618396574434.JavaMail.root@zimbra76-e14.priv.proxad.net>
X-Provags-ID: V03:K1:ZWp1Y1mLz1zWc3LiZc6gpRQVGP7Wk/NzBtk9MugCBI1YekeTXMb
zP/FqE2FiP8HL/ndlCeZ3AIStB+qNA7sM1wTU7szP5zJDeTjF5lYt+lsD+JjLqs9kHcDH94
XIV8fv/1g/ry++sdPh8OH1zDp4fG2tIoy8e96J+4R/5jNaCNigyfF/Baa16c1fhCSoiUgto
dNNC6LZILaH6Kornos2lQ==
X-UI-Out-Filterresults: notjunk:1;V03:K0:0moppRlgTgg=:3OEsy92xSiNM9SduPqCqY4
Ma+tsIT7mfuWqHpCSI7ybJHssCQsk9OkknjQtRTU+AP4EtUhf0f91SvMktvoSIVVLdMpTQjSU
8Ag0lmXiTba0MgPomxM1/kg9o/htO8HlPVya4V8U5x0VIWveEvFgb4WF0FlpY7UssG+C0gcGD
5nm5Q0YqiH8VwdXXce9/usXUO0gh9qPWBIo0uQ7VHYzaSJ/HclsXgXZutPX9IHJWEDdfaoS8+
CRtPcL7GGQJf+Cu80tJhIFzS7N0LakRi/P88AB1BS+Q0MUxAZLYi95qIObcjU3iE/jhIL0iCQ
mPFxEuLPKmq1DnJNOSScWdUkAbVqXPpqF4uXrBaHVCc2fnvtrGlFh8ON61FFiTbKAx3IhPn1u
NoLPelHmLPsuzdfjJq9w3Fgu+Kzc1ol4Smpr7i89Ya5Jg/lvEFXgtKIaAn4eTF2uTmGIjDefA
2UiJZf4gXV5xQyXkmpHWAjLDAiPDNpyJXE2OuEPzIlQqpOSO/jdAWRkwG5OJzPM6hjWCiDbme
RvjIDisJUqAUhexLPAgCzI=
X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
KAM_LAZY_DOMAIN_SECURITY, KAM_NUMSUBJECT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE,
TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 13EBGGk4027559

Am 14.04.2021 um 12:36 schrieb akiki--- via Cygwin:
> Hi,
> I encountered problems with the use of timestamps in cygwin.
> May be it's an old problem, I don't know, using essentially files "recently" created/modified.
>
>
> I want to say after 1970 No problem, but before ...
The namespace of Unix/POSIX timestamps starts in 1970. Time before that 
year does not exist.

> To day:
> touch -m -t 190001011200.00 x gives touch: format de date « 190001011200.00 » incorrect
> touch -m -t 190101011200.00 x gives ok - with ls -l x:
> -rw-r--r-- 1 user group 0 1 janv. 1910 x
>
>
> touch used is well /bin/touch
>
>
> By comparison on Ubuntu 18 LTS
> touch -m -t 190001011200.00 x is correct
>
>
> I know, timestamps are managed differently in windows and linux.
>
>
> I see also with the new windows terminal with ubuntu
> On windows file, like /mnt/c/x (windows is mounted by linux)
> touch -m -t 190001011200.00 x ; echo $? gives
> 0 #No error but timestamp is set to 1970-01-01
> On linux file as ~/x, it's correct;
>
>
> So, which confidence to have with cygwin about files of timestamp 19xx before 1970.
> May be it's ok after 1901. The answer is NOT.
> touch -m -t 190101011200.00 x gives sometimes format de date incorrect
>
>
> In some windows directories and more problematic, for a same directory, I don't understand why.
> May be due to embedded mounts.
>
>
> I hope to have been clear enough.
>
>
>
> Thanks for answers.
> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019