Contents - Index - Previous - Next
DateTime property
Applies to
TVCLUnZip component
Declaration
property DateTime[Index]: Integer: TDateTime;
Description
The DateTime property returns the Date and Time stamp for the particular file in TDateTime format. If using VCLZip you may also set this value to change the Date and Time stamp for a file in an existing archive.
If you do set DateTime, the archive will be flagged as modified. After setting all of the DateTime's that you wish to set, you should call the SaveModifiedZipFile Method to save the archive with the new DateTime's.
Reading DateTime:
ThisTime := VCLZip.DateTime[i];
Writing DateTime:
VCLZip.DateTime[i] := Now;
SaveModifiedZipFile;
Run-time only
Read-only