Merge pull request #1782 from zeel/patch-1
corrected order for subtraction
This commit is contained in:
commit
fcfef6a078
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ Besides the given methods, there are two special ones that do not have a UTC-var
|
|||
: Returns the timestamp for the date -- a number of milliseconds passed from the January 1st of 1970 UTC+0.
|
||||
|
||||
[getTimezoneOffset()](mdn:js/Date/getTimezoneOffset)
|
||||
: Returns the difference between the local time zone and UTC, in minutes:
|
||||
: Returns the difference between UTC and the local time zone, in minutes:
|
||||
|
||||
```js run
|
||||
// if you are in timezone UTC-1, outputs 60
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue