Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Archive::Zip Modify Date Oddity

by lhchin (Novice)
on Jan 04, 2017 at 00:29 UTC ( [id://1178891]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1178891]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-24 02:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found