Exemple #1
0
 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;
 }
Exemple #2
0
            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);
Exemple #4
0
 internal extern static bool GetTimeZoneInformationForYear(ushort wYear, ref TIME_DYNAMIC_ZONE_INFORMATION pdtzi, out TIME_ZONE_INFORMATION ptzi);
Exemple #5
0
 internal extern static uint GetDynamicTimeZoneInformationEffectiveYears(ref TIME_DYNAMIC_ZONE_INFORMATION lpTimeZoneInformation, out uint FirstYear, out uint LastYear);
Exemple #6
0
 internal extern static uint GetDynamicTimeZoneInformation(out TIME_DYNAMIC_ZONE_INFORMATION pTimeZoneInformation);
Exemple #7
0
 internal extern static uint EnumDynamicTimeZoneInformation(uint dwIndex, out TIME_DYNAMIC_ZONE_INFORMATION lpTimeZoneInformation);
Exemple #8
0
 internal extern static bool GetTimeZoneInformationForYear(ushort wYear, ref TIME_DYNAMIC_ZONE_INFORMATION pdtzi, out TIME_ZONE_INFORMATION ptzi);
Exemple #9
0
 internal extern static uint GetDynamicTimeZoneInformationEffectiveYears(ref TIME_DYNAMIC_ZONE_INFORMATION lpTimeZoneInformation, out uint FirstYear, out uint LastYear);
Exemple #10
0
 internal extern static uint EnumDynamicTimeZoneInformation(uint dwIndex, out TIME_DYNAMIC_ZONE_INFORMATION lpTimeZoneInformation);