getDay
getHours
getMinutes
時(0〜23)を返します。
date.getHours()
下記の値を入力するとサンプルに即時反映されます。
const
new
console
const date = new Date(); console.log(date.getHours()); // current hour (0-23)