public final class TimeZoneUtil extends Object implements Serializable
com.google.gwt.i18n.client.TimeZone.| Modifier and Type | Method and Description |
|---|---|
static String |
toJSON(ZoneId zoneId,
Locale locale)
Returns a JSON string of the specified
zoneId and Locale,
which is used in
com.google.gwt.i18n.client.TimeZone#createTimeZone(String). |
static String |
toJSON(ZoneId zoneId,
Locale locale,
int startYear,
int endYear)
Returns a JSON string of the specified
zoneId and Locale,
which is used in
com.google.gwt.i18n.client.TimeZone#createTimeZone(String). |
public static String toJSON(ZoneId zoneId, Locale locale)
zoneId and Locale,
which is used in
com.google.gwt.i18n.client.TimeZone#createTimeZone(String).
This method calculates the JSON string from the year
until years into the
future from the current date.zoneId - the ZoneId to get the daylight transitions fromlocale - the locale used to determine the short name of the time zonetoJSON(ZoneId, Locale, int, int)public static String toJSON(ZoneId zoneId, Locale locale, int startYear, int endYear)
zoneId and Locale,
which is used in
com.google.gwt.i18n.client.TimeZone#createTimeZone(String).
This method calculates the JSON string from startYear until
startYear, both inclusive.zoneId - the ZoneId to get the daylight transitions fromlocale - the locale used to determine the short name of the time zonestartYear - the start year of DST transitionsendYear - the end year of DST transitionsCopyright © 2021 Vaadin Ltd. All rights reserved.