Skip to content

Commit

Permalink
minus +
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulyana0505 committed Oct 9, 2023
1 parent 0eb112e commit 2a3336c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ let day = new Date(userDataArr.join("-"));
console.log(day.getDay());
// 8.2
let today = new Date();
let todayHours = +today.getHours();
let todayHours = today.getHours();
let minInHours = todayHours * 60;
let todayMin = +today.getMinutes();
let todayMin = today.getMinutes();
const todayAllMin = minInHours + todayMin;
console.log("С начала сегодняшенего дня прошло: " + todayAllMin + " минут.");
// 8.3
Expand Down

0 comments on commit 2a3336c

Please sign in to comment.