p7zip-project/p7zip

Query regrading create date time and modified date time of files inside zip

nishan-canwill opened this issue · 3 comments

I want to get the creation date time and modified date time for the files inside the zip. I can see them in the GUI but how do I get them through my python program. Any pointers will be helpful.

Screenshot from 2022-06-27 13-54-51

I would really appreciate any help on this

You can parse the output of 7z l -slt file.zip (look for Modified = and Created = fields).

Be careful when using this Created= in the created archives on Linux, they have the wrong created date.