public class TimeZonePickerUtils extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DST_SYMBOL_COLOR |
static int |
GMT_TEXT_COLOR |
Constructor and Description |
---|
TimeZonePickerUtils(Context context)
This needs to be an instantiated class so that it doesn't need to continuously re-load the
list of timezone IDs that need to be overridden.
|
Modifier and Type | Method and Description |
---|---|
static void |
appendGmtOffset(StringBuilder sb,
int gmtOffset) |
static char |
getDstSymbol() |
CharSequence |
getGmtDisplayName(Context context,
String id,
long millis,
boolean grayGmt)
Given a timezone id (e.g.
|
public static final int GMT_TEXT_COLOR
public static final int DST_SYMBOL_COLOR
public TimeZonePickerUtils(Context context)
context
- public CharSequence getGmtDisplayName(Context context, String id, long millis, boolean grayGmt)
context
- Context in case the override labels need to be re-cached.id
- The timezone idmillis
- The time (daylight savings or not)grayGmt
- Whether the "GMT+x" part of the returned string should be colored gray.public static void appendGmtOffset(StringBuilder sb, int gmtOffset)
public static char getDstSymbol()