Merge pull request #871 from Hardik500/patch-3

[FIX] wrong comment with getColonTimeFromDate #869
This commit is contained in:
Angelos Chalaris
2018-11-03 16:14:51 +02:00
committed by GitHub

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);