Class | Archive::Zip::ExtraField::ExtendedTimestamp |
In: |
lib/archive/zip/extra_field/extended_timestamp.rb
|
Parent: | Object |
Archive::Zip::Entry::ExtraField::ExtendedTimestamp represents an extra field which optionally contains the last modified time, last accessed time, and file creation time for a ZIP archive entry and stored in a Unix time format (seconds since the epoc).
ID | = | 0x5455 | The identifier reserved for this extra field type. |
atime | [RW] | The last accessed time for an entry. Set to either a Time instance or nil. |
crtime | [RW] | The creation time for an entry. Set to either a Time instance or nil. |
header_id | [R] | Returns the header ID for this ExtraField. |
mtime | [RW] | The last modified time for an entry. Set to either a Time instance or nil. |
This method signature is part of the interface contract expected by Archive::Zip::Entry for extra field objects.
Parses data which is expected to be a String formatted according to the documentation provided with InfoZip‘s sources.
Raises Archive::Zip::ExtraFieldError if data contains invalid data.
This method signature is part of the interface contract expected by Archive::Zip::Entry for extra field objects.
Parses data which is expected to be a String formatted according to the documentation provided with InfoZip‘s sources.
Raises Archive::Zip::ExtraFieldError if data contains invalid data.
This method signature is part of the interface contract expected by Archive::Zip::Entry for extra field objects.
Returns a String suitable to writing to a central file record in a ZIP archive file which contains the data for this object.
This method signature is part of the interface contract expected by Archive::Zip::Entry for extra field objects.
Returns a String suitable to writing to a local file record in a ZIP archive file which contains the data for this object.
This method signature is part of the interface contract expected by Archive::Zip::Entry for extra field objects.
Merges the attributes of other into this object and returns self.
Raises ArgumentError if other is not the same class as this object.