Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以在 javascript 中获取时区偏移量。但是如何通过使用该偏移量来获取时区(亚洲/加尔各答)。
请帮助我。
使用http://pellepim.bitbucket.org/jstz/
> var timezone = jstz.determine(); > timezone.name(); "Asia/Kolkata"