in reply to Re: Archive::Zip Modify Date Oddity
in thread Archive::Zip Modify Date Oddity

Thank you for sharing the info. If this is to mimic windows time stamp, it is not desirable. Further test verified it does round down the original file Modify date to lower even-seconds.
It is not the case when tested using Windows GUI or Unix Shell from Perl to zip file, it does not modify the original Modify date of the file.
As such I have submitted an enhancement request to the Archive::Zip Library in cspan.org for ZIP64 support for higher-resolution NTFS or Unix file timestamps

Replies are listed 'Best First'.
Re^3: Archive::Zip Modify Date Oddity
by pmqs (Friar) on Jan 04, 2017 at 10:46 UTC

    Zip64 support doesn't have anything to do with the granularity of the timestamp recorded in the zip file. It just allows file larger than 4Gig to be stored in a zip archive.

    The two second time granularity is dealt with in modern zip implementations by storing an extended timestamp field.

    Archive::Zip::SimpleZip supports this field.

      Thank you for the info. SimpleZip is not install as basic Perl Library.
      Alternatively running the shell Zip command within Perl handles the Modify date correctly, which is a simpler solution.
        SimpleZip is just a wrapper around IO::Compress::Zip. IO::Compress::Zip is a core library and also supports the extended timestamp.