ZipEntry.SetLastModifiedTime(FileTime) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the last modification time of the entry.
[Android.Runtime.Register("setLastModifiedTime", "(Ljava/nio/file/attribute/FileTime;)Ljava/util/zip/ZipEntry;", "GetSetLastModifiedTime_Ljava_nio_file_attribute_FileTime_Handler", ApiSince=26)]
public virtual Java.Util.Zip.ZipEntry? SetLastModifiedTime (Java.Nio.FileNio.Attributes.FileTime? time);
[<Android.Runtime.Register("setLastModifiedTime", "(Ljava/nio/file/attribute/FileTime;)Ljava/util/zip/ZipEntry;", "GetSetLastModifiedTime_Ljava_nio_file_attribute_FileTime_Handler", ApiSince=26)>]
abstract member SetLastModifiedTime : Java.Nio.FileNio.Attributes.FileTime -> Java.Util.Zip.ZipEntry
override this.SetLastModifiedTime : Java.Nio.FileNio.Attributes.FileTime -> Java.Util.Zip.ZipEntry
Parameters
- time
- FileTime
The last modification time of the entry
Returns
This zip entry
- Attributes
Remarks
Sets the last modification time of the entry.
When output to a ZIP file or ZIP file formatted output stream the last modification time set by this method will be stored into zip file entry's date and time fields
in standard MS-DOS date and time format
), and the extended timestamp fields in optional extra data
in UTC time.
Added in 1.8.
Java documentation for java.util.zip.ZipEntry.setLastModifiedTime(java.nio.file.attribute.FileTime)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.