We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd001a7 commit 651ff82Copy full SHA for 651ff82
1 file changed
1-js/4-data-structures/11-datetime/6-get-seconds-today/solution.md
@@ -10,7 +10,7 @@ function getSecondsToday() {
10
var today = new Date(now.getFullYear(), now.getMonth(), now.getDate());
11
12
var diff = now - today; // разница в миллисекундах
13
- return Math.round(diff / 1000); // перевести в секунды
+ return Math.floor(diff / 1000); // перевести в секунды
14
}
15
16
alert( getSecondsToday() );
0 commit comments