C# Class Subtext.Framework.Util.WindowsTZI

This structure is the binary equivalent of the TZI information found in the Windows registry for each key underneath "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones"
Datei anzeigen Open project: ayende/Subtext

Public Properties

Property Type Description
bias int
daylightBias int
daylightDate WindowsSystemTime
standardBias int
standardDate WindowsSystemTime

Public Methods

Method Description
InitializeFromByteArray ( byte buffer, int offset ) : int

Initializes the structure from a byte array.

Method Details

InitializeFromByteArray() public method

Initializes the structure from a byte array.
public InitializeFromByteArray ( byte buffer, int offset ) : int
buffer byte Byte buffer
offset int Offset intro the buffer at which to start
return int

Property Details

bias public_oe property

Base Bias from GMT, in seconds. Subtracting this value from the local time results in GMT. For Western Europe, this value is -60, for US Eastern Time this value is +300.
public int bias
return int

daylightBias public_oe property

Daylight savings time bias as an offset to the base bias. Subtracting this value from the local time results in the standard time. For Western Europe, this value is -60, for US Eastern time ít's also -60 and for India Standard Time it's 0.
public int daylightBias
return int

daylightDate public_oe property

This is WindowsSystemTime structure (equivalent to the unmanaged SYSTEMTIME) structure, but stores NOT a valid date. Instead, the following rules apply: If "month" is 0, there is no daylight savings time for this zone. The dayOfWeek value indicates the day of the week on which daylight savings time reverts back to standard time. The day value indicates, starting at 1 (with a maximum value of 5, saying "last") the occurrence of that weekday within the month on which the daylight savings time reverts back.
public WindowsSystemTime,Subtext.Framework.Util daylightDate
return WindowsSystemTime

standardBias public_oe property

Standard time bias as an offset to the base bias. This is usually 0.
public int standardBias
return int

standardDate public_oe property

This is WindowsSystemTime structure (equivalent to the unmanaged SYSTEMTIME) structure, but stores NOT a valid date. Instead, the following rules apply: If "month" is 0, there is no daylight savings time for this zone. The dayOfWeek value indicates the day of the week on which daylight savings time is effective. The day value indicates, starting at 1 (with a maximum value of 5, saying "last") the occurrence of that weekday within the month on which the daylight savings time is effective.
public WindowsSystemTime,Subtext.Framework.Util standardDate
return WindowsSystemTime