C# Class ICSharpCode.SharpZipLib.Zip.ExtendedUnixData

Class representing extended unix date time values.
Inheritance: ITaggedData
Show file Open project: fanfeilong/exceltk Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
GetData ( ) : byte[]

Get the binary data representing this instance.

IsValidValue ( System.DateTime value ) : bool

Test a value to see if is valid and can be represented here.

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 data, int index, int count ) : void

Set the data from the raw values provided.

Method Details

GetData() public method

Get the binary data representing this instance.
public GetData ( ) : byte[]
return byte[]

IsValidValue() public static method

Test a value to see if is valid and can be represented here.
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.
public static IsValidValue ( System.DateTime value ) : bool
value System.DateTime The value to test.
return bool

SetData() public method

Set the data from the raw values provided.
public SetData ( byte data, int index, int count ) : void
data byte The raw data to extract values from.
index int The index to start extracting values from.
count int The number of bytes available.
return void