public long endTimeDurationToMinuteTimeBucket(Step step, String dateStr) {
        long minTimeBucket = convertToTimeBucket(step, dateStr);
        switch (step) {
            case DAY:
                return (minTimeBucket * 100 + 23) * 100 + 59;
            case HOUR:
                return minTimeBucket * 100 + 59;
            case MINUTE:
                return minTimeBucket;
            case SECOND:
                return minTimeBucket / 100;
        }
        throw new UnexpectedException("Unsupported step " + step.name());
    }
Convert date in `yyyy-MM-dd HHmmss` style to `yyyyMMddHHmmss` no matter the precision. Such as, in day precision,
this covert `yyyy-MM-dd` style to `yyyyMMdd`.
oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/query/DurationUtils.java