UNPKG
lodate
Version:
latest (0.4.0)
0.4.0
0.3.0
0.2.0
0.1.0
date utility functions
github.com/Niklus/lodate
Niklus/lodate
lodate
/
utils
/
getTimezone.js
12 lines
(11 loc)
•
222 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
/** * * Get the timezone string * *
@returns
{
string
} The timezone string * *
@example
* getTimezone(); // "Europe/Stockholm" */
export
const
getTimezone
= (
) =>
Intl
.
DateTimeFormat
().
resolvedOptions
().
timeZone
;