code: @FFDCIgnore(NumberFormatException.class)
      public static Long evaluateDuration(String strVal, TimeUnit endUnit) {
          // If the value is a number, simply return the numeric value as a long
          try {
              return Long.valueOf(strVal);
          } catch (NumberFormatException ex) {
              // ignore
          }
  
          // Otherwise, parse the duration with unit descriptors.
          return evaluateDuration(strVal, endUnit, UNIT_DESCRIPTORS);
      }
docs: Converts a string value representing a unit of time into a Long value.
  
  @param strVal
  A String representing a unit of time.
  @param unit
  The unit of time that the string value should be converted into
  @return Long The value of the string in the desired time unit