public class Timestamp extends Date
Constructor and Description |
---|
Timestamp(int year,
int month,
int date,
int hour,
int minute,
int second,
int nano)
Deprecated.
|
Timestamp(long time) |
Modifier and Type | Method and Description |
---|---|
boolean |
after(Timestamp ts) |
boolean |
before(Timestamp ts) |
int |
compareTo(Date o) |
int |
compareTo(Timestamp o) |
boolean |
equals(Object ts) |
boolean |
equals(Timestamp ts) |
int |
getNanos() |
long |
getTime() |
int |
hashCode() |
void |
setNanos(int n) |
void |
setTime(long time) |
String |
toString() |
static Timestamp |
valueOf(String s) |
after, before, clone, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTimezoneOffset, getYear, padTwo, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setYear, toGMTString, toLocaleString, UTC
@Deprecated public Timestamp(int year, int month, int date, int hour, int minute, int second, int nano)
public Timestamp(long time)
public boolean after(Timestamp ts)
public boolean before(Timestamp ts)
public int compareTo(Date o)
compareTo
in interface Comparable<Date>
compareTo
in class Date
public int compareTo(Timestamp o)
public boolean equals(Timestamp ts)
public int getNanos()
public void setNanos(int n)
Copyright © 2018. All rights reserved.