File Date earlier then 1965 not possible. Why? Workaround?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
File Date earlier then 1965 not possible. Why? Workaround?
For peculiar reasons, I want the filedate on some old scanned image files to have a filedate equal to the date of the original photo. For example, photos of my grandparents from the 40's and 50's. But if I use exiftool to set the filedate equal to DateTimeOriginal, dates before 1965 end up in the future.
1915 shows as 2015, 1964 as 2064, etc
Is there a workaround? And does anyone know how this cutoff date was chosen?
The system has no problem with time before 1970. Are you trying to set the file date (as shown by "ls -l") or the EXIF date field within the file? The file date should not be a problem. You can use the touch command to set that:
The format for the EXIF DateTime field is “YYYY:MM:DD HH:MM:SS”, so there shouldn't be any problem there either if you can just get exiftool to cooperate.
What I am doing is setting the image DateTimeOriginal to the date that the original photograph was taken, rather the the date it was scanned into a digital image (that date goes in DateTimeDigitized).
And then: exiftool '-filemodifydate<DateTimeOriginal' whatever.jpg
The results: 1952 shows as 2052, etc ...
-rw-r--r-- 1 user user 1119666 Jun 5 2052 1952zwaagstrafamily.jpg
-rw-r--r-- 1 user user 402077 Aug 5 2051 1950wouter&sjorssailing.jpg
-rw-r--r-- 1 user user 451012 May 5 2051 1951mayonboardshiptocanada.jpg
-rw-r--r-- 1 user user 1157442 Apr 5 2051 1951momatgirlscamp.jpg
-rw-r--r-- 1 user user 1081582 May 5 2048 1948mayjanaaltjepater25.jpg
-rw-r--r-- 1 user user 580101 Aug 5 2047 1947wouter&friends.jpg
-rw-r--r-- 1 user user 1115624 Apr 5 2047 1944eastermomsiblings.jpg
-rw-r--r-- 1 user user 471702 Apr 5 2047 1947momschool.jpg
-rw-r--r-- 1 user user 306034 Jun 30 2035 1935wouterpater.jpg
-rw-r--r-- 1 user user 918170 May 5 2015 1915(aprx)aaltjebosma.jpg
-rw-r--r-- 1 user user 978527 Apr 5 2015 1915(aprox)janpater.jpg
-rw-r--r-- 1 user user 1358282 Aug 5 1990 1990august05joyce&nicole.jpg
-rw-r--r-- 1 user user 1135520 Dec 25 1988 1988christmasseattle.jpg
-rw-r--r-- 1 user user 1450650 Jun 28 1988 1990-10-28 20.34.34.jpg
-rw-r--r-- 1 user user 796787 May 5 1988 1988maysean.jpg
-rw-r--r-- 1 user user 1020891 May 5 1988 1988mayhiking.jpg
-rw-r--r-- 1 user user 1114762 Dec 25 1987 1987decembersean.jpg
-rw-r--r-- 1 user user 960499 Oct 25 1987 1987octoberseattlesean.jpg
-rw-r--r-- 1 user user 896565 May 25 1985 1985maymichellejoyce.jpg
-rw-r--r-- 1 user user 894726 Aug 25 1983 1983augustrichardarmy.jpg
-rw-r--r-- 1 user user 718815 Apr 25 1980 1980calvincollegejohn.jpg
-rw-r--r-- 1 user user 883596 Dec 26 1979 1979newskates.jpg
-rw-r--r-- 1 user user 726551 Dec 25 1979 1979christmasskating.jpg
-rw-r--r-- 1 user user 721414 Sep 2 1978 1978blackhillsjoyce.jpg
-rw-r--r-- 1 user user 655919 May 27 1977 1977may27patriciagrad.jpg
-rw-r--r-- 1 user user 961217 May 27 1976 1976joycemanitoba.jpg
-rw-r--r-- 1 user user 888055 May 27 1975 1975winnipegzoo.jpg
-rw-r--r-- 1 user user 994509 Aug 7 1973 1973augustmedicinehatweddingdora&walter.jpg
-rw-r--r-- 1 user user 979255 Nov 7 1971 1971novemberfamilyportrait.jpg
-rw-r--r-- 1 user user 710307 Jun 7 1971 1971dad&kidsfortgarrymanitoba.jpg
-rw-r--r-- 1 user user 776354 Jun 7 1971 1971junemanitoba.jpg
-rw-r--r-- 1 user user 604246 Oct 7 1969 1969octoberjoyce&walterpaterwinnipeg.jpg
-rw-r--r-- 1 user user 499991 Jul 7 1968 1968julycalgary.jpg
-rw-r--r-- 1 user user 663174 May 7 1967 1967alanricharddad.jpg
-rw-r--r-- 1 user user 498151 Apr 7 1967 1968calgaryfather&sons.jpg
-rw-r--r-- 1 user user 539054 Apr 7 1967 1967calgaryjoyce&patricia.jpg
-rw-r--r-- 1 user user 611947 May 7 1966 1966athome.jpg
-rw-r--r-- 1 user user 637789 May 7 1966 1966calgary.jpg
-rw-r--r-- 1 user user 1423333 Oct 28 1965 1965-10-28 20.20.36.jpg
-rw-r--r-- 1 user user 552550 Apr 7 1965 1965aprilrichard.jpg
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.