public static String dateTypeAdd(String dateStr, IntervalInfo intervalInfo, boolean isPositive) {
        Object dateParserObj = parseLocalDateTime(dateStr);
        if (dateParserObj != null) {
            return addDateTime(dateStr, (LocalDateTime) dateParserObj, intervalInfo, isPositive);
        }
        dateParserObj = parseLocalTime(dateStr);
        if (dateParserObj != null) {
            return addTime(dateStr, (LocalTime) dateParserObj, intervalInfo, isPositive);
        }
        return null;
    }
Time calculation

@param dateStr      Time parameter string
@param intervalInfo Interval parsing results
@param isPositive   True is positive, false is negative
@return Calculation result string
inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/utils/DateUtil.java