public class TimestampUtils extends Object
| 构造器和说明 |
|---|
TimestampUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Date |
convertToDate(long millis,
@Nullable TimeZone tz) |
static Time |
convertToTime(long millis,
TimeZone tz) |
static Calendar |
getSharedCalendar(@Nullable TimeZone timeZone) |
static Date |
toDate(@Nullable Calendar cal,
@PolyNull String s) |
java.time.OffsetDateTime |
toOffsetDateTime(Time t)
已过时。
|
static @PolyNull Time |
toTime(@Nullable Calendar cal,
@PolyNull String s) |
static @PolyNull Timestamp |
toTimestamp(@Nullable Calendar cal,
@PolyNull String s) |
public static @PolyNull Timestamp toTimestamp(@Nullable Calendar cal, @PolyNull String s) throws SQLException
SQLException@Deprecated public java.time.OffsetDateTime toOffsetDateTime(Time t)
public static @PolyNull Time toTime(@Nullable Calendar cal, @PolyNull String s) throws SQLException
SQLExceptionpublic static Date toDate(@Nullable Calendar cal, @PolyNull String s) throws SQLException
SQLExceptionCopyright © 2025. All rights reserved.