anchor.diff:  begin
   if Double.IsNaN(Utilities.GetObjAsDouble(aSelf, aCaller)) then exit Double.NaN;
     var lValue := UnixToDateTime(Utilities.GetObjAsDouble(aSelf, aCaller)).ToLocalTime;
  -  exit lValue.DayOfWeek;
  +  exit Integer(lValue.DayOfWeek);
   end;
   
   method GlobalObject.DateGetUTCDay(aCaller: ExecutionContext;aSelf: Object; params args: Array of Object): Object;
   begin
     if Double.IsNaN(Utilities.GetObjAsDouble(aSelf, aCaller)) then exit Double.NaN;
     var lValue := UnixToDateTime(Utilities.GetObjAsDouble(aSelf, aCaller));
  -  exit lValue.DayOfWeek;
  +  exit Integer(lValue.DayOfWeek);
   end;
   
   method GlobalObject.DateGetHours(aCaller: ExecutionContext;aSelf: Object; params args: Array of Object): Object;
  
positive.code:   if (not ((lValue is Double) or (lValue is Int64))) then
      RaiseNativeError(NativeErrorType.TypeError, 'Date.valueOf is not generic');
  
    exit Convert.ToDouble(lValue);
  end;
  
  
  
negative.code: 
  method GlobalObject.DateNow(aCaller: ExecutionContext;aSelf: Object; params args: Array of Object): Object;
  begin
    exit DateTimeToUnix(DateTime.UtcNow) * 1000;
  end;
  
  
  