所有TimeZone时间都保持在哪里? [英] Where all TimeZone times are maintained?

查看:293
本文介绍了所有TimeZone时间都保持在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我们为特定的日期设置 TimeZone ,那么java如何设置日期,例如,如果我们将 PST 设置为时区,它怎么知道确切的时区,它在哪里被维护? ?

If we set TimeZone for a specific Date, how does java set time for that Date, like for example if we set PST as the time zone, how can it know the exact time zone, where is it being maintained??

提前致谢

推荐答案

时区数据源是特定于实现,但我相信大多数实现都使用 IANA数据库(又名zoneinfo,又名tz,又名Olson,又名TZDB) 。

The time zone data source is implementation-specific, but I believe most implementations use the IANA database (aka zoneinfo, aka tz, aka Olson, aka TZDB).

请注意,PST实际上不是时区 - 它是时区的一部分。时区为太平洋时间,通常使用ID America / Los_Angeles指定

Note that PST isn't really a time zone - it's "part" of a time zone. The time zone is "Pacific Time", usually specified with an ID of "America/Los_Angeles".

这篇关于所有TimeZone时间都保持在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆