Merge pull request #1459 from hrodward/patch-2

Update task.md
This commit is contained in:
Ilya Kantor 2019-10-15 22:26:09 +03:00 committed by GitHub
commit 0e695a47fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,11 +2,11 @@ importance: 5
---
# How many seconds has passed today?
# How many seconds have passed today?
Write a function `getSecondsToday()` that returns the number of seconds from the beginning of today.
For instance, if now `10:00 am`, and there was no daylight savings shift, then:
For instance, if now were `10:00 am`, and there was no daylight savings shift, then:
```js
getSecondsToday() == 36000 // (3600 * 10)