7-Zip on Windows will save the Date Created and Date Accessed when compressing a .zip file, however it does not do this for its (referring to 7-Zip) native .7z format. Any Unix-based formats are ineligible. Are there any other formats out there that support these two fields?
You can also store Access-, Modification- and Creation-Date when using 7-zips ".7z" format. To do so just specify the following parameters when packing data:
- 7-zip GUI: write "tc ta" into "Parameters:" textfield
- 7-zip command line: specify "-mtc -mta -mtm" parameters
tc stands for creation time,
ta stands for access time and
tm stands for modification time
The modification time is stored by default.
Date Created, Modified and Accessed are not functions of file formats. Also, 7-Zip is not a Windows native application.
Regardless, these attributes are part of NTFS journaling.
You can add these attributes to Windows explorer easily for all folder / file types:
However, they are not always accurate or enabled.
On my machine, for example accessed journaling appears to be off. Right clicking and viewing properties of the a file, I see slightly different (and more accurate attributes)
I can also run a PowerShell command to get information
gci | LastAccessTime gives me:
It is just as accurate as the explorer view.
Instead, what needs to be done it ensure Windows has jorunaling enabled.
This can be enabled from an administrator command prompt with the command:
fsutil behavior set disablelastaccess 0
RAR supports storage of modification, creation, and last access times. There's no (legal) free version of the compressor, though.
Then I suppose you're stuck with "ZIP" and "CAB" on Windows without external applications that aren't native. There's always "ARC" if that's still around.