ZipEntry.Time Property

Definition

Returns the last modification time of the entry. -or- Sets the last modification time of the entry.

public virtual long Time { [Android.Runtime.Register("getTime", "()J", "GetGetTimeHandler")] get; [Android.Runtime.Register("setTime", "(J)V", "GetSetTime_JHandler")] set; }
[<get: Android.Runtime.Register("getTime", "()J", "GetGetTimeHandler")>]
[<set: Android.Runtime.Register("setTime", "(J)V", "GetSetTime_JHandler")>]
member this.Time : int64 with get, set

Property Value

The last modification time of the entry in milliseconds since the epoch, or -1 if not specified

Attributes

Remarks

Property getter documentation:

Returns the last modification time of the entry.

If the entry is read from a ZIP file or ZIP file formatted input stream, this is the last modification time from the date and time fields of the zip file entry. The java.util.TimeZone#getDefault() default TimeZone is used to convert the standard MS-DOS formatted date and time to the epoch time.

Java documentation for java.util.zip.ZipEntry.getTime().

Property setter documentation:

Sets the last modification time of the entry.

If the entry is output to a ZIP file or ZIP file formatted output stream the last modification time set by this method will be stored into the date and time fields of the zip file entry and encoded in standard MS-DOS date and time format. The java.util.TimeZone#getDefault() default TimeZone is used to convert the epoch time to the MS-DOS data and time.

Java documentation for java.util.zip.ZipEntry.setTime(long).

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.

Applies to