Quantcast
Channel: Getting current hour from UTC Offset with momentjs - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Getting current hour from UTC Offset with momentjs

$
0
0

I would like to convert a utc offset value (e.g. "-1000") into the given hour, (e.g. 2pm). How do I do this with mommentjs? Is there a way to do this without using momentjs timzone? I was previously trying the following but not getting the expected outcome.

moment.parseZone("-1000").format('h A')


Viewing all articles
Browse latest Browse all 2

Trending Articles