public class TimestampWithTimezone extends Object
Modifier and Type | Field and Description |
---|---|
static DateFormat |
DATE_FORMAT |
static DateFormat |
DATETIME_FORMAT |
static DateFormat |
TIME_FORMAT |
Constructor and Description |
---|
TimestampWithTimezone() |
Modifier and Type | Method and Description |
---|---|
static Date |
createDate(Calendar target)
Creates normalized SQL Date Object based on the target Calendar
|
static Date |
createDate(Calendar initial,
Calendar target) |
static Time |
createTime(Calendar target)
Creates normalized SQL Time Object based on the target Calendar.
|
static Time |
createTime(Calendar initial,
Calendar target) |
static Timestamp |
createTimestamp(Calendar target)
Creates normalized SQL Timestamp Object based on the target Calendar
|
static Timestamp |
createTimestamp(Calendar initial,
Calendar target) |
static Calendar |
getCalendar() |
static void |
resetCalendar(TimeZone tz) |
public static DateFormat DATETIME_FORMAT
public static DateFormat DATE_FORMAT
public static DateFormat TIME_FORMAT
public static Calendar getCalendar()
public static void resetCalendar(TimeZone tz)
public static Time createTime(Calendar target)
target
- Calendarpublic static Date createDate(Calendar target)
target
- CalendarCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.