[FIX] wrong comment with getColonTimeFromDate #869

This commit is contained in:
Hardik500
2018-11-03 16:58:20 +05:30
committed by GitHub
parent f4be7c9142
commit de1b9f3eba

View File

@ -2,7 +2,7 @@
Returns a string of the form `HH:MM:SS` from a `Date` object.
Use `Date.prototype.toString()` and `String.prototype.slice()` to get the `HH:MM:SS` part of a given `Date` object.
Use `Date.prototype.toTimeString()` and `String.prototype.slice()` to get the `HH:MM:SS` part of a given `Date` object.
```js
const getColonTimeFromDate = date => date.toTimeString().slice(0, 8);