cdm/src/main/java/ucar/nc2/units/DateUnit.java
public Date makeDate(double val) {
    if (Double.isNaN(val)) return null;
    double secs = timeUnit.getValueInSeconds(val); //
    return new Date(getDateOrigin().getTime() + (long) (1000 * secs));
  }
public Date makeDate(double val) {
    if (Double.isNaN(val)) return null;
    double secs = timeUnit.getValueInSeconds(val); //
    return new Date(getDateOrigin().getTime() + (long) (1000 * secs));
  }
Create a Date from this base unit and the given value.

@param val value in the units of this base unit, eg sec since base date
@return Date .