Package io.tesler.api.util.tz
Class TimeZoneUtil
- java.lang.Object
-
- io.tesler.api.util.tz.TimeZoneUtil
-
public class TimeZoneUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description TimeZoneUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TemporalAdjuster
fromTimeZone(boolean tzAware, ZoneId zoneId)
static LocalDateTime
fromTimeZone(LocalDateTime localDateTime, ZoneId zoneId)
static TemporalAdjuster
fromTimeZone(ZoneId zoneId)
static TimeZone
getSessionTimeZone()
static ZoneId
getSessionZoneId()
static boolean
hasTzAwareSuffix(String string)
static boolean
isTzAware(com.fasterxml.jackson.core.JsonGenerator generator)
static boolean
isTzAware(com.fasterxml.jackson.core.JsonStreamContext context)
static boolean
isTzAware(com.fasterxml.jackson.databind.BeanProperty property)
static LocalDateTime
switchZone(LocalDateTime localDateTime, ZoneId from, ZoneId to)
static Instant
toInstant(LocalDateTime localDateTime)
static Instant
toInstant(LocalDateTime localDateTime, ZoneId zoneId)
static Instant
toInstant(Date date)
static LocalDateTime
toLocalDateTime(Instant instant)
static LocalDateTime
toLocalDateTime(OffsetDateTime offsetDateTime)
static LocalDateTime
toLocalDateTime(ZonedDateTime zonedDateTime)
static LocalDateTime
toLocalDateTime(Date date)
static OffsetDateTime
toOffsetDateTime(LocalDateTime localDateTime)
static OffsetDateTime
toOffsetDateTime(LocalDateTime localDateTime, ZoneId zoneId)
static TemporalAdjuster
toTimeZone(boolean tzAware, ZoneId zoneId)
static LocalDateTime
toTimeZone(LocalDateTime localDateTime, ZoneId zoneId)
static TemporalAdjuster
toTimeZone(ZoneId zoneId)
static ZonedDateTime
toZonedDateTime(LocalDateTime localDateTime)
static ZonedDateTime
toZonedDateTime(LocalDateTime localDateTime, ZoneId zoneId)
-
-
-
Field Detail
-
SUFFIX
public static final String SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
isTzAware
public static boolean isTzAware(com.fasterxml.jackson.core.JsonGenerator generator)
-
isTzAware
public static boolean isTzAware(com.fasterxml.jackson.core.JsonStreamContext context)
-
isTzAware
public static boolean isTzAware(com.fasterxml.jackson.databind.BeanProperty property)
-
hasTzAwareSuffix
public static boolean hasTzAwareSuffix(String string)
-
toLocalDateTime
public static LocalDateTime toLocalDateTime(Date date)
-
toLocalDateTime
public static LocalDateTime toLocalDateTime(ZonedDateTime zonedDateTime)
-
toLocalDateTime
public static LocalDateTime toLocalDateTime(Instant instant)
-
toLocalDateTime
public static LocalDateTime toLocalDateTime(OffsetDateTime offsetDateTime)
-
switchZone
public static LocalDateTime switchZone(LocalDateTime localDateTime, ZoneId from, ZoneId to)
-
toInstant
public static Instant toInstant(LocalDateTime localDateTime, ZoneId zoneId)
-
toInstant
public static Instant toInstant(LocalDateTime localDateTime)
-
toZonedDateTime
public static ZonedDateTime toZonedDateTime(LocalDateTime localDateTime, ZoneId zoneId)
-
toZonedDateTime
public static ZonedDateTime toZonedDateTime(LocalDateTime localDateTime)
-
toOffsetDateTime
public static OffsetDateTime toOffsetDateTime(LocalDateTime localDateTime, ZoneId zoneId)
-
toOffsetDateTime
public static OffsetDateTime toOffsetDateTime(LocalDateTime localDateTime)
-
fromTimeZone
public static TemporalAdjuster fromTimeZone(ZoneId zoneId)
-
fromTimeZone
public static TemporalAdjuster fromTimeZone(boolean tzAware, ZoneId zoneId)
-
fromTimeZone
public static LocalDateTime fromTimeZone(LocalDateTime localDateTime, ZoneId zoneId)
-
toTimeZone
public static TemporalAdjuster toTimeZone(ZoneId zoneId)
-
toTimeZone
public static TemporalAdjuster toTimeZone(boolean tzAware, ZoneId zoneId)
-
toTimeZone
public static LocalDateTime toTimeZone(LocalDateTime localDateTime, ZoneId zoneId)
-
getSessionTimeZone
public static TimeZone getSessionTimeZone()
-
getSessionZoneId
public static ZoneId getSessionZoneId()
-
-