docs: @SuppressWarnings("deprecation")
  	public static boolean isTimeInRange(java.sql.Time start, java.sql.Time end, java.util.Date d) {
          d = new java.sql.Time(d.getHours(), d.getMinutes(), d.getSeconds());
  
          if (start == null || end == null) {
              return false;
          }
  
          if (start.before(end) && (!(d.after(start) && d.before(end)))) {
              return false;
          }
  
          if (end.before(start) && (!(d.after(end) || d.before(start)))) {
              return false;
          }
          return true;
      }