Class ExtendedUnixData
Class representing extended unix date time values.
Inheritance
Implements
Inherited Members
Namespace: ICSharpCode.SharpZipLib.Zip
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
public class ExtendedUnixData : ITaggedData
Properties
| Improve this Doc View SourceAccessTime
Get / set the Access Time
Declaration
public DateTime AccessTime { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
See Also
| Improve this Doc View SourceCreateTime
Get / Set the Create Time
Declaration
public DateTime CreateTime { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
See Also
| Improve this Doc View SourceInclude
Get/set the values to include.
Declaration
public ExtendedUnixData.Flags Include { get; set; }
Property Value
Type | Description |
---|---|
ExtendedUnixData.Flags |
ModificationTime
Get /set the Modification Time
Declaration
public DateTime ModificationTime { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
See Also
| Improve this Doc View SourceTagID
Get the ID
Declaration
public ushort TagID { get; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Methods
| Improve this Doc View SourceGetData()
Get the binary data representing this instance.
Declaration
public byte[] GetData()
Returns
Type | Description |
---|---|
System.Byte[] | The raw binary data representing this instance. |
IsValidValue(DateTime)
Test a System.DateTime
Declaration
public static bool IsValidValue(DateTime value)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | value | The System.DateTime to test. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the value is valid and can be represented; false if not. |
Remarks
The standard Unix time is a signed integer data type, directly encoding the Unix time number, which is the number of seconds since 1970-01-01. Being 32 bits means the values here cover a range of about 136 years. The minimum representable time is 1901-12-13 20:45:52, and the maximum representable time is 2038-01-19 03:14:07.
SetData(Byte[], Int32, Int32)
Set the data from the raw values provided.
Declaration
public void SetData(byte[] data, int index, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | The raw data to extract values from. |
System.Int32 | index | The index to start extracting values from. |
System.Int32 | count | The number of bytes available. |