Where all TimeZone times are maintained?

2019-02-27 12:05发布

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??

Thanks in advance

1条回答
戒情不戒烟
2楼-- · 2019-02-27 12:45

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).

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".

查看更多
登录 后发表回答