public static java.util.Date toLogical(Schema schema, int value) {
        if (!(LOGICAL_NAME.equals(schema.name())))
            throw new DataException("Requested conversion of Date object but the schema does not match.");
        if (value  < 0 || value > MILLIS_PER_DAY)
            throw new DataException("Time values must use number of milliseconds greater than 0 and less than 86400000");
        return new java.util.Date(value);
    }
Convert a value from its encoded format (int) to its logical format ({@link java.util.Date}).
@param value the encoded value
@return the logical value
connect/api/src/main/java/org/apache/kafka/connect/data/Time.java