|
|
|
@ -25,7 +25,7 @@ function setTime() {
|
|
|
|
const day = time.getDay()
|
|
|
|
const day = time.getDay()
|
|
|
|
const date = time.getDate()
|
|
|
|
const date = time.getDate()
|
|
|
|
const hours = time.getHours()
|
|
|
|
const hours = time.getHours()
|
|
|
|
const hoursForClock = hours % 12
|
|
|
|
const hoursForClock = hours >= 13 ? hours % 12 : hours;
|
|
|
|
const minutes = time.getMinutes()
|
|
|
|
const minutes = time.getMinutes()
|
|
|
|
const seconds = time.getSeconds()
|
|
|
|
const seconds = time.getSeconds()
|
|
|
|
const ampm = hours >= 12 ? 'PM' : 'AM'
|
|
|
|
const ampm = hours >= 12 ? 'PM' : 'AM'
|
|
|
|
|