code: public static String fromDuration(Duration duration) {
  		if (duration == null) {
  			return null;
  		}
  		return humanize(duration.get(ChronoUnit.MILLIS));
  	}
docs: Converts a time from java.util.time.Duration to human readable format "Xd Xh Xm Xs Xms" (for interoperability).