|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.slim3.commons.util.TimestampUtil
public final class TimestampUtil
A utility class for Timestamp
.
Method Summary | |
---|---|
static String |
getPattern(Locale locale)
Returns the pattern for the locale. |
static String |
toString(Timestamp value,
String pattern)
Converts the Timestamp value to text. |
static Timestamp |
toTimestamp(Object o)
Converts the object to Timestamp . |
static Timestamp |
toTimestamp(String text,
String pattern)
Converts the text to Timestamp . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Timestamp toTimestamp(Object o)
Timestamp
.
o
- the object
public static Timestamp toTimestamp(String text, String pattern) throws NullPointerException, ParseRuntimeException
Timestamp
.
text
- the textpattern
- the pattern for SimpleDateFormat
NullPointerException
- if the pattern parameter is null
ParseRuntimeException
- if ParseException
is encounteredpublic static String toString(Timestamp value, String pattern)
Timestamp
value to text.
value
- the Timestamp
valuepattern
- the pattern for SimpleDateFormat
public static String getPattern(Locale locale)
locale
- the locale
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |