public class DateTimeHelper extends Object
Constructor and Description |
---|
DateTimeHelper() |
Modifier and Type | Method and Description |
---|---|
static GregorianCalendar |
convertDateToGregorianCalendar(Date date,
String timeZone) |
static java.time.LocalDate |
convertDateToLocalDate(Date date,
String timeZone) |
static java.time.LocalDateTime |
convertDateToLocalDateTime(Date date,
String timeZone) |
static java.time.LocalTime |
convertDateToLocalTime(Date date,
String timeZone) |
static Date |
convertDateToSqlDate(Date date,
String timeZone) |
static Time |
convertDateToTime(Date date,
String timeZone) |
static Date |
convertLocalDateTimeToDate(java.time.LocalDateTime localDateTime,
String timeZone) |
static Date |
convertLocalTimeToDate(java.time.LocalTime localTime,
String timeZone) |
static Date |
convertSqlDateToDate(Date date,
String timeZone) |
static Date |
convertSqlTimeToDate(Time time,
String timeZone) |
static java.time.ZonedDateTime |
toZonedDateTime(Calendar calendar) |
static java.time.ZonedDateTime |
toZonedDateTime(Date date,
String timeZone) |
static java.time.ZonedDateTime |
toZonedDateTime(java.time.LocalDate date,
String timeZone) |
static java.time.ZonedDateTime |
toZonedDateTime(java.time.LocalDateTime date,
String timeZone) |
static java.time.ZonedDateTime |
toZonedDateTime(java.time.LocalTime time,
String timeZone) |
public static GregorianCalendar convertDateToGregorianCalendar(Date date, String timeZone)
public static java.time.LocalDate convertDateToLocalDate(Date date, String timeZone)
public static Date convertLocalTimeToDate(java.time.LocalTime localTime, String timeZone)
public static java.time.LocalTime convertDateToLocalTime(Date date, String timeZone)
public static Date convertLocalDateTimeToDate(java.time.LocalDateTime localDateTime, String timeZone)
public static java.time.LocalDateTime convertDateToLocalDateTime(Date date, String timeZone)
public static java.time.ZonedDateTime toZonedDateTime(Calendar calendar)
public static java.time.ZonedDateTime toZonedDateTime(java.time.LocalDate date, String timeZone)
public static java.time.ZonedDateTime toZonedDateTime(java.time.LocalTime time, String timeZone)
public static java.time.ZonedDateTime toZonedDateTime(java.time.LocalDateTime date, String timeZone)
Copyright © 2018 JBoss by Red Hat. All rights reserved.