You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/docs/manual/v8.0.0/api/js/date.mdx
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -949,8 +949,8 @@ let toLocaleTimeString: t => string;
949
949
Returns the time of day for the given `Date` in the current locale format. See [`Date.toLocaleTimeString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString) on MDN.
950
950
951
951
```re example
952
-
Js.Date.toLocaleString(exampleDate) == "10:30:54 PM"; // for en_US.utf8
953
-
Js.Date.toLocaleString(exampleDate) == "22:30:54"; // for de_DE.utf8
952
+
Js.Date.toLocaleTimeString(exampleDate) == "10:30:54 PM"; // for en_US.utf8
953
+
Js.Date.toLocaleTimeString(exampleDate) == "22:30:54"; // for de_DE.utf8
0 commit comments