[FIX] wrong comment with getColonTimeFromDate #869
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Returns a string of the form `HH:MM:SS` from a `Date` object.
|
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
|
```js
|
||||||
const getColonTimeFromDate = date => date.toTimeString().slice(0, 8);
|
const getColonTimeFromDate = date => date.toTimeString().slice(0, 8);
|
||||||
|
|||||||
Reference in New Issue
Block a user