public unsafe TIME_ZONE_INFORMATION(TIME_DYNAMIC_ZONE_INFORMATION dtzi) { Bias = dtzi.Bias; fixed (char* standard = StandardName) { for (int i = 0; i < 32; ++i) { standard[i] = dtzi.StandardName[i]; } } fixed (char* daylight = DaylightName) { for (int i = 0; i < 32; ++i) { daylight[i] = dtzi.DaylightName[i]; } } StandardDate = dtzi.StandardDate; StandardBias = dtzi.StandardBias; DaylightDate = dtzi.DaylightDate; DaylightBias = dtzi.DaylightBias; }
public unsafe TIME_ZONE_INFORMATION(TIME_DYNAMIC_ZONE_INFORMATION dtzi) { Bias = dtzi.Bias; fixed(char *standard = StandardName) { for (int i = 0; i < 32; ++i) { standard[i] = dtzi.StandardName[i]; } } fixed(char *daylight = DaylightName) { for (int i = 0; i < 32; ++i) { daylight[i] = dtzi.DaylightName[i]; } } StandardDate = dtzi.StandardDate; StandardBias = dtzi.StandardBias; DaylightDate = dtzi.DaylightDate; DaylightBias = dtzi.DaylightBias; }
internal static extern uint GetDynamicTimeZoneInformation(out TIME_DYNAMIC_ZONE_INFORMATION pTimeZoneInformation);
internal extern static bool GetTimeZoneInformationForYear(ushort wYear, ref TIME_DYNAMIC_ZONE_INFORMATION pdtzi, out TIME_ZONE_INFORMATION ptzi);
internal extern static uint GetDynamicTimeZoneInformationEffectiveYears(ref TIME_DYNAMIC_ZONE_INFORMATION lpTimeZoneInformation, out uint FirstYear, out uint LastYear);
internal extern static uint GetDynamicTimeZoneInformation(out TIME_DYNAMIC_ZONE_INFORMATION pTimeZoneInformation);
internal extern static uint EnumDynamicTimeZoneInformation(uint dwIndex, out TIME_DYNAMIC_ZONE_INFORMATION lpTimeZoneInformation);