toDosTime

open fun toDosTime(time: Date): ZipLong

Convert a Date object to a DOS date/time field.

Return

the date as a ZipLong

Parameters

time

the Date to convert


open fun toDosTime(t: Long): Array<Byte>

Convert a Date object to a DOS date/time field.

Stolen from InfoZip's fileio.c

Return

the date as a byte array

Parameters

t

number of milliseconds since the epoch


open fun toDosTime(t: Long, buf: Array<Byte>, offset: Int)

Convert a Date object to a DOS date/time field.

Stolen from InfoZip's fileio.c

Parameters

t

number of milliseconds since the epoch

buf

the output buffer

offset

The offset within the output buffer of the first byte to be written. must be non-negative and no larger than buf.length-4