// 두 날짜 사이 시간 계산const start = new Date();const end = new Date();// ms -> secondsconst gapSeconds = (end.getTime() - start.getTime()) / 1000;// hh:mm 형태 문자열 구하기new Date(gapSeconds * 1000).toISOString().substring(11, 16); // hh:mmnew Date(gapSeconds * 1000).toISOString().substring(14, 19); // hh:mm:ss