Add comments

This commit is contained in:
Andrew-71 2024-03-28 10:42:52 +03:00
parent f0198a4a72
commit a53dda25bd
8 changed files with 16 additions and 8 deletions

View file

@ -1,3 +1,4 @@
// Format time in "Jan 02, 2006" format
function formatDate(date) {
let dateFormat = new Intl.DateTimeFormat('en', {
year: 'numeric',
@ -15,7 +16,7 @@ function updateDate() {
}
// Starts interval to update today's date every hour at 00:00
// Start interval to update today's date every hour at 00:00
function callEveryHour() {
setInterval(updateDate, 1000 * 60 * 60);
}