date modified hour and zip files in DST timezone
Moderators: Hacker, petermad, Stefan2, white
Re: date modified hour and zip files in DST timezone
Horst.Epp,
The quesstion is not how to increase FAT timestamp resolution but how to keep seeing local timestamp for files instead of it jumping around based on summer time or time zone.
Roman
The quesstion is not how to increase FAT timestamp resolution but how to keep seeing local timestamp for files instead of it jumping around based on summer time or time zone.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: date modified hour and zip files in DST timezone
What about file managers that can use Zip packaging as ExFAT ?Horst.Epp wrote: 2023-10-19, 13:14 UTCAccept the facts.anmac1789 wrote: 2023-10-19, 12:27 UTC I prefer the FAT like behaviour of timestamps in the sense that it doesnt change when DST on or off but i want higher time resolution without the timezone information or UTC timestamps
FAT has no higher time resolution, TC or any other file manager can't change that.
Re: date modified hour and zip files in DST timezone
Thats right how to stop DST hour changes affecting either files within the zip or files when extracted from zip.Hacker wrote: 2023-10-19, 14:08 UTC Horst.Epp,
The quesstion is not how to increase FAT timestamp resolution but how to keep seeing local timestamp for files instead of it jumping around based on summer time or time zone.
Roman
From my observation file with times ending in odd numbers -- 1,3,5,7,9 zip subtracts 1 second from files having these times.
for files with times ending in even numbers --0,2,4,6,8 zip doesn't change timestamps of these files
What about using something like this ? https://github.com/DinoChiesa/DotNetZip
so is there someway to add 1 second to those odd time files during the zip process so that the files are consistent ?
Re: date modified hour and zip files in DST timezone
I know, but he saidHacker wrote: 2023-10-19, 14:08 UTC Horst.Epp,
The quesstion is not how to increase FAT timestamp resolution but how to keep seeing local timestamp for files instead of it jumping around based on summer time or time zone.
Roman
"I prefer the FAT like behaviour of timestamps in the sense that it doesnt change when DST on or off but i want higher time resolution without the timezone information or UTC timestamps"
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Re: date modified hour and zip files in DST timezone
I've tested both even and odd second times and my conclusion is that zip does not preserve odd seconds. Zip only preserves even seconds. The question now becomes, is there ANY process by which to preserve odd second time files with total commander's version of zip?Horst.Epp wrote: 2023-10-19, 15:38 UTCI know, but he saidHacker wrote: 2023-10-19, 14:08 UTC Horst.Epp,
The quesstion is not how to increase FAT timestamp resolution but how to keep seeing local timestamp for files instead of it jumping around based on summer time or time zone.
Roman
"I prefer the FAT like behaviour of timestamps in the sense that it doesnt change when DST on or off but i want higher time resolution without the timezone information or UTC timestamps"
Re: date modified hour and zip files in DST timezone
Yes, and neither does ZIP, TC cannot change that either.FAT has no higher time resolution, TC or any other file manager can't change that.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: date modified hour and zip files in DST timezone
What about any pre-processing scripts ?
Re: date modified hour and zip files in DST timezone
Apparently it is possible to store NTFS timestamps in so called "Extra" fields - but doing that might make the file incompatible for extraction with for.example Windows Explorer - or you might just get the FAT timestamp in that case - I don't know.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: date modified hour and zip files in DST timezone
Horst.Epp,
Roman
I think that's exactly what I said, just in other words.I know, but he said
"I prefer the FAT like behaviour of timestamps in the sense that it doesnt change when DST on or off but i want higher time resolution without the timezone information or UTC timestamps"
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: date modified hour and zip files in DST timezone
anmac1789,
Roman
You could save the timestamps in some batch file in the zip archive and run it to restore the correct time stamps after unpacking.What about any pre-processing scripts ?
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: date modified hour and zip files in DST timezone
Do you know how to test this ?petermad wrote: 2023-10-19, 20:58 UTC Apparently it is possible to store NTFS timestamps in so called "Extra" fields - but doing that might make the file incompatible for extraction with for.example Windows Explorer - or you might just get the FAT timestamp in that case - I don't know.
But, that's the same thing as using any file attribute changer software to change the source files before packing and the files are unpacking. Is there some process to do it during the zipping process as like some pre command ? Like if I was total commander and there is somekind of option to run a batch command during the zip process...okay check file1.jpg date modified has odd second, add +1 second, zip, subtract -1 second etc...Hacker wrote: 2023-10-19, 21:05 UTC anmac1789,You could save the timestamps in some batch file in the zip archive and run it to restore the correct time stamps after unpacking.What about any pre-processing scripts ?
Roman
Re: date modified hour and zip files in DST timezone
anmac1789,
what do you set the time after unpacking? 12:40:32? 12:40:31? 12:40:33?
When you also pack "timestampinfo.txt" with contents
then you can restore timestamps correctly.
Roman
No, it is not, because when you only have packed files, you don't know what the original time was anymore. When you have packed filethat's the same thing as using any file attribute changer software to change the source files before packing
Code: Select all
file1.jpg 12:40:32
When you also pack "timestampinfo.txt" with contents
Code: Select all
file1.jpg=12:40:31
file2.jpg=12:45:27
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: date modified hour and zip files in DST timezone
Well, even if timestamps for the same files are stored with 1 second difference, TC considers them equal when comparing either with Shift+F2 or with the Sync tool.
Example with NFTS on on the left and exFAT on the right side: https://tcmd.madsenworld.dk/comparetimestamps1secdiff.png where 3 files have timestamps with a 1 second difference.
Example with NFTS on on the left and exFAT on the right side: https://tcmd.madsenworld.dk/comparetimestamps1secdiff.png where 3 files have timestamps with a 1 second difference.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: date modified hour and zip files in DST timezone
ok so how do i use this text file to restore odd second timestamps ?Hacker wrote: 2023-10-20, 07:59 UTC anmac1789,No, it is not, because when you only have packed files, you don't know what the original time was anymore. When you have packed filethat's the same thing as using any file attribute changer software to change the source files before packingwhat do you set the time after unpacking? 12:40:32? 12:40:31? 12:40:33?Code: Select all
file1.jpg 12:40:32
When you also pack "timestampinfo.txt" with contentsthen you can restore timestamps correctly.Code: Select all
file1.jpg=12:40:31 file2.jpg=12:45:27
Roman
Re: date modified hour and zip files in DST timezone
anmac1789,
HTH
Roman
You could e.g. include the NirCmd utility in the archive and then run a RestoreCorrectTimes.cmd, which would contain the commands to correct the timestamps, something like:how do i use this text file to restore odd second timestamps ?
Code: Select all
nircmdc.exe setfiletime file1.jpg "" "28-08-2023 12:40:31"
nircmdc.exe setfiletime file2.jpg "" "28-08-2023 12:45:27"
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.