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