code: public static final TimeUnit getDurationTimeUnits(int type, TimeUnit projectDefaultDurationUnits)
     {
        TimeUnit units;
  
        switch (type & DURATION_UNITS_MASK)
        {
           case 3:
           {
              units = TimeUnit.MINUTES;
              break;
           }
  
           case 4:
           {
              units = TimeUnit.ELAPSED_MINUTES;
              break;
           }
  
           case 5:
           {
              units = TimeUnit.HOURS;
              break;
           }
  
           case 6:
           {
              units = TimeUnit.ELAPSED_HOURS;
              break;
           }
  
           case 8:
           {
              units = TimeUnit.ELAPSED_DAYS;
              break;
           }
  
           case 9:
           {
              units = TimeUnit.WEEKS;
              break;
           }
  
           case 10:
           {
              units = TimeUnit.ELAPSED_WEEKS;
              break;
           }
  
           case 11:
           {
              units = TimeUnit.MONTHS;
              break;
           }
  
           case 12:
           {
              units = TimeUnit.ELAPSED_MONTHS;
              break;
           }
  
           case 19:
           {
              units = TimeUnit.PERCENT;
              break;
           }
  
           case 20:
           {
              units = TimeUnit.ELAPSED_PERCENT;
              break;
           }
  
           case 7:
           {
              units = TimeUnit.DAYS;
              break;
           }
  
           case 21:
           {
              units = projectDefaultDurationUnits == null ? TimeUnit.DAYS : projectDefaultDurationUnits;
              break;
           }
  
           default:
           {
              units = TimeUnit.DAYS;
              break;
           }
        }
  
        return (units);
     }
docs: This method converts between the duration units representation
  used in the MPP file, and the standard MPX duration units.
  If the supplied units are unrecognised, the units default to days.
  
  @param type MPP units
  @param projectDefaultDurationUnits default duration units for this project
  @return MPX units