I know JavaScript Date
objects contain getTimezoneOffset()
for getting the offset, but is there any method that returns the label or name
for that timezone?
For example, on my computer, in Chrome's console, if I do:
> new Date().toString();
Then I get:
< "Thu Feb 25 2016 08:49:56 GMT-0800 (Pacific Standard Time)"
What I'd like to do is take a Date
and get back "Pacific Standard Time"
portion for it.
Is this possible, and if so, how?