| 限定符和类型 | 字段和说明 |
|---|---|
static boolean |
CURRENT_TIME_ZONE_IS_UTC |
static String |
localTimeZoneId |
static int |
TIME_ZONE_OFFSET |
| 构造器和说明 |
|---|
TimeConvertUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getCurrentTimeAsFormatUTC() |
static Date |
getCurrentTimeAsUTC() |
static boolean |
isSystemDefaultUTC() |
static Date |
reverseFromUTC(Date date) |
static Date |
reverseFromUTC(Date date,
String timeZone) |
static String |
reverseFromUTC(String timeStr) |
static String |
reverseFromUTC(String timeStr,
String timeZone) |
static String |
timeZoneConvert(Date date,
String fromTimeZone,
String toTimeZone) |
static String |
timeZoneConvert(String timeStr,
String fromTimeZone,
String toTimeZone) |
static Date |
toUTC(Date date) |
static Date |
toUTC(Date date,
String timeZone) |
static String |
toUTC(String timeStr) |
static String |
toUTC(String timeStr,
String timeZone) |
static Date[] |
toUTCDateRegion(Date date,
String timeZone) |
public static final String localTimeZoneId
public static final int TIME_ZONE_OFFSET
public static final boolean CURRENT_TIME_ZONE_IS_UTC
public static String timeZoneConvert(String timeStr, String fromTimeZone, String toTimeZone)
public static String timeZoneConvert(Date date, String fromTimeZone, String toTimeZone)
public static String getCurrentTimeAsFormatUTC()
public static Date getCurrentTimeAsUTC()
public static boolean isSystemDefaultUTC()
Copyright © 2025. All rights reserved.