| 限定符和类型 | 字段和说明 |
|---|---|
static ZoneId |
ZONE_ID_UTC
UTC 的 TimeZone
|
static TimeZone |
ZONE_UTC
UTC 的 ZoneID
|
| 构造器和说明 |
|---|
ZoneUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getAvailableID(int rawOffset,
TimeUnit timeUnit)
获取指定偏移量的可用时区ID,如果有多个时区匹配,使用第一个
|
static TimeZone |
getTimeZoneByOffset(int rawOffset,
TimeUnit timeUnit)
获取指定偏移量的可用时区,如果有多个时区匹配,使用第一个
|
static TimeZone |
toTimeZone(ZoneId zoneId)
|
static ZoneId |
toZoneId(TimeZone timeZone)
|
public static final TimeZone ZONE_UTC
public static final ZoneId ZONE_ID_UTC
Copyright © 2024. All rights reserved.