docs: public String timeToString(java.util.Date time, boolean withTimeZone) {
      Calendar cal = null;
      if (withTimeZone) {
        cal = calendarWithUserTz;
        cal.setTimeZone(timeZoneProvider.get());
      }
      if (time instanceof Timestamp) {
        return toString(cal, (Timestamp) time, withTimeZone);
      }
      if (time instanceof Time) {
        return toString(cal, (Time) time, withTimeZone);
      }
      return toString(cal, (Date) time, withTimeZone);
    }