0

JavaTimezone类有以下方法:

公共最终字符串 getDisplayName(布尔日光,int 样式)

可以有哪些值style以及它如何影响结果?是否有值的枚举?

4

2 回答 2

1

Two options:

Timezone.SHORT

A style specifier for getDisplayName() indicating a short name, such as "PST."

Timezone.LONG

A style specifier for getDisplayName() indicating a long name, such as "Pacific Standard Time."

于 2013-06-05T06:43:15.810 回答
0

Here's a link that might answer everything for you:

http://www.tutorialspoint.com/java/util/timezone_getdisplayname_daylight.htm

Hope it helps!

于 2013-06-05T06:44:06.503 回答