📅  最后修改于: 2022-03-11 15:04:05.949000             🧑  作者: Mango
const dubbleZero = parseInt('00');
const time = new Date();
const formatedDate = `${dubbleZero + time.getHours()}:${dubbleZero + time.getMinutes()}:${dubbleZero + time.getSeconds()}`;
console.log(formatedDate);