public class TimestampUtil
extends java.lang.Object
| Constructor and Description |
|---|
TimestampUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
formatTimestamp(java.sql.Timestamp timestamp,
java.lang.String format)
Formats the given timestamp object in the format HH:mm
|
static java.sql.Timestamp |
getCurrentTimestamp()
Returns the current timestamp
|
static java.lang.String |
getCurrentTimestampStringFormat()
Provides the current timestamp in the format "yyyy-MM-dd hh:mm:ss.SSS"
|
static java.sql.Timestamp |
getTimestampFromString(java.lang.String timestamp)
Given a String object with the format "yyyy-MM-dd hh:mm:ss.SSS", returns a timestamp object
|
public static java.lang.String formatTimestamp(java.sql.Timestamp timestamp,
java.lang.String format)
timestamp - a timestamp objectpublic static java.lang.String getCurrentTimestampStringFormat()
public static java.sql.Timestamp getCurrentTimestamp()
public static java.sql.Timestamp getTimestampFromString(java.lang.String timestamp)
timestamp - a String object representing a timestamp in the format "yyyy-MM-dd hh:mm:ss.SSS"