@Component(value="cuba_TimeZones")
public class TimeZones
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.regex.Pattern |
AD_HOC_TZ_PATTERN |
static java.lang.String |
NAME |
static java.util.TimeZone |
UTC |
Constructor and Description |
---|
TimeZones() |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
convert(java.util.Date srcDate,
java.util.TimeZone srcTimeZone,
java.util.TimeZone dstTimeZone)
Converts date between time zones.
|
java.lang.String |
getDisplayNameLong(java.util.TimeZone timeZone) |
java.lang.String |
getDisplayNameShort(java.util.TimeZone timeZone) |
java.lang.String |
getDisplayOffset(java.util.TimeZone timeZone) |
public static final java.lang.String NAME
public static final java.util.TimeZone UTC
public static final java.util.regex.Pattern AD_HOC_TZ_PATTERN
@Nullable public java.util.Date convert(@Nullable java.util.Date srcDate, java.util.TimeZone srcTimeZone, java.util.TimeZone dstTimeZone)
srcDate
- datesrcTimeZone
- source time zonedstTimeZone
- destination time zonepublic java.lang.String getDisplayOffset(@Nullable java.util.TimeZone timeZone)
public java.lang.String getDisplayNameLong(@Nullable java.util.TimeZone timeZone)
public java.lang.String getDisplayNameShort(@Nullable java.util.TimeZone timeZone)