Microsoft.JScript.DatePrototype.DatePrototype C# (CSharp) Méthode

DatePrototype() static private méthode

static private DatePrototype ( ) : System
Résultat System
      static DatePrototype(){
        DateTime jan1ThisYear = new DateTime(DateTime.Now.Year, 1, 1);
        double jantimeoffset =  (jan1ThisYear.Ticks - jan1ThisYear.ToUniversalTime().Ticks) / ticksPerMillisecond;
        DateTime july1ThisYear = new DateTime(DateTime.Now.Year, 7, 1);
        double julytimeoffset = (july1ThisYear.Ticks - july1ThisYear.ToUniversalTime().Ticks) / ticksPerMillisecond;
        if (jantimeoffset < julytimeoffset){
          localStandardTZA = jantimeoffset;
          localDaylightTZA = julytimeoffset;
        } else{
          localStandardTZA = julytimeoffset;
          localDaylightTZA = jantimeoffset;
        }
        useDST = localStandardTZA != localDaylightTZA;
      }

Same methods

DatePrototype::DatePrototype ( ObjectPrototype parent ) : System