public class XTimeStamp extends Timestamp
| 构造器和说明 |
|---|
XTimeStamp(int year,
int month,
int date,
int hour,
int minute,
int second,
int nano) |
XTimeStamp(long time) |
XTimeStamp(Timestamp timestamp) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
after(Timestamp tts)
指示此 Timestamp 对象是否晚于给定的 Timestamp 对象。
|
boolean |
before(Timestamp tts)
指示此 Timestamp 对象是否早于给定的 Timestamp 对象。
|
int |
compareTo(Date d)
将此 Timestamp 对象与给定的 Date(必须为 Timestamp 对象)相比较。
|
int |
compareTo(Timestamp timeStamp)
将此 Timestamp 对象与给定 Timestamp 对象相比较。
|
boolean |
equals(Object obj)
测试此对象是否等于给定的 Timestamp 对象。
|
boolean |
equals(Timestamp timeStamp)
测试此 Timestamp 对象是否等于给定的 Timestamp 对象。
|
int |
getNanos()
获取此 Timestamp 对象的 毫秒 值。
|
long |
getTime()
返回此 Timestamp 对象表示的自 1970 年 1 月 1 日 00:00:00 GMT 以来的毫秒数。
|
void |
setNanos(int n)
将此 Timestamp 对象的 毫秒 字段设置为给定值。
|
void |
setTime(long time)
设置此 Timestamp 对象,以表示 1970 年 1 月 1 日 00:00:00 GMT 以后 time 毫秒的时间点。
|
String |
toString()
将使用 JDBC 时间戳转义格式的 String 对象转换为 Timestamp 值。
|
static Timestamp |
valueOf(String s)
使用 JDBC 时间戳转义格式编排时间戳。
|
after, before, clone, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTimezoneOffset, getYear, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setYear, toGMTString, toLocaleString, UTCpublic XTimeStamp(long time)
public XTimeStamp(Timestamp timestamp)
public XTimeStamp(int year,
int month,
int date,
int hour,
int minute,
int second,
int nano)
year - month - date - hour - minute - second - nano - public String toString()
public static Timestamp valueOf(String s)
public boolean after(Timestamp tts)
public boolean before(Timestamp tts)
public int compareTo(Date d)
compareTo 在接口中 Comparable<Date>compareTo 在类中 Timestamppublic int compareTo(Timestamp timeStamp)
public boolean equals(Timestamp timeStamp)
public long getTime()
Copyright © 2025. All rights reserved.