Show / Hide Table of Contents

Class ExtendedUnixData

Class representing extended unix date time values.

Inheritance
System.Object
ExtendedUnixData
Implements
ITaggedData
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ICSharpCode.SharpZipLib.Zip
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
public class ExtendedUnixData : ITaggedData

Properties

| Improve this Doc View Source

AccessTime

Get / set the Access Time

Declaration
public DateTime AccessTime { get; set; }
Property Value
Type Description
System.DateTime
Exceptions
Type Condition
System.ArgumentOutOfRangeException
See Also
IsValidValue(DateTime)
| Improve this Doc View Source

CreateTime

Get / Set the Create Time

Declaration
public DateTime CreateTime { get; set; }
Property Value
Type Description
System.DateTime
Exceptions
Type Condition
System.ArgumentOutOfRangeException
See Also
IsValidValue(DateTime)
| Improve this Doc View Source

Include

Get/set the values to include.

Declaration
public ExtendedUnixData.Flags Include { get; set; }
Property Value
Type Description
ExtendedUnixData.Flags
| Improve this Doc View Source

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
IsValidValue(DateTime)
| Improve this Doc View Source

TagID

Get the ID

Declaration
public ushort TagID { get; }
Property Value
Type Description
System.UInt16

Methods

| Improve this Doc View Source

GetData()

Get the binary data representing this instance.

Declaration
public byte[] GetData()
Returns
Type Description
System.Byte[]

The raw binary data representing this instance.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Implements

ITaggedData
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2000-2022 SharpZipLib Contributors