Zip::ZipFile timestamp extraction help

Hi,

I am trying to validate uploads on an application where the uploaded
file is a zipped archive, and I want some validation to include
acceptable datestamps within the zipfile,

When I open a zip, with invalid datestamp, I receive the console
output:

‘Invalid date/time in zip entry’

Which is great, but I want to be able to extract this information and
use it to reject the upload, but I can’t seem to find a method which
will allow me to extract this information from the zip.

Does anybody know of a method I can use which will return the date/
time stamp of the zip file, or return the Rescue statement above if it
is invalid?

Thank you

Pete