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
: Create the date with the given components in the local time zone. Only the first two arguments are obligatory.
59
59
60
-
- The `year` must have 4 digits: `2013` is okay, `98` is not.
60
+
- The `year` should have 4 digits. For compatibility, 2 digits are also accepted and considered `19xx`, e.g. `98` is the same as `1998` here, but always using 4 digits is strongly encouraged.
61
61
- The `month` count starts with `0` (Jan), up to `11` (Dec).
62
62
- The `date` parameter is actually the day of month, if absent then `1` is assumed.
63
63
- If `hours/minutes/seconds/ms` is absent, they are assumed to be equal `0`.
@@ -376,7 +376,7 @@ for (let i = 0; i < 10; i++) {
Modern JavaScript engines perform many optimizations. They may tweak results of"artificial tests" compared to "normal usage", especially when we benchmark something very small, such as how an operator works, or a built-infunction. So if you seriously want to understand performance, then please study how the JavaScript engine works. And then you probably won't need microbenchmarks at all.
378
378
379
-
The great pack of articles about V8 can be found at <http://mrale.ph>.
379
+
The great pack of articles about V8 can be found at <https://mrale.ph>.
380
380
```
381
381
382
382
## Date.parse from a string
@@ -407,7 +407,7 @@ We can instantly create a `new Date` object from the timestamp:
407
407
```js run
408
408
let date = new Date( Date.parse('2012-01-26T13:51:50.417-07:00') );
0 commit comments