@SneakyThrows
public static void main(String[] args) {
//10:17
Date parse = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse("2022-01-06 10:15:00");
System.out.println("date = " + parse);
long h=5*60*1000;//倒计时时间阀:5分钟
long g = h - DateUtil.betweenMs(parse,DateUtil.date());//倒计时=时间阀 -(倒计时开始时间和现今时间的差值)
long sec = g / 1000 % 60;
long min = g / 1000 / 60 % 60;
long hou = g / 1000 / 60 / 60;
System.out.println(hou+":"+min+":"+sec);