Package org.apache.solr.util
Class TimeZoneUtils
- java.lang.Object
- 
- org.apache.solr.util.TimeZoneUtils
 
- 
- 
Field SummaryFields Modifier and Type Field Description static Set<String>KNOWN_TIMEZONE_IDSAn immutable Set of all TimeZone IDs supported by the TimeZone class at the moment the TimeZoneUtils was initialized.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static TimeZonegetTimeZone(String ID)This method is provided as a replacement for TimeZone.getTimeZone but without the annoying behavior of returning "GMT" for gibberish input.static TimeZoneparseTimezone(String tzStr)Parse the specified timezone ID.
 
- 
- 
- 
Field Detail- 
KNOWN_TIMEZONE_IDSpublic static final Set<String> KNOWN_TIMEZONE_IDS An immutable Set of all TimeZone IDs supported by the TimeZone class at the moment the TimeZoneUtils was initialized.- See Also:
- TimeZone.getAvailableIDs(int)
 
 
- 
 - 
Method Detail- 
getTimeZonepublic static final TimeZone getTimeZone(String ID) This method is provided as a replacement for TimeZone.getTimeZone but without the annoying behavior of returning "GMT" for gibberish input.This method will return null unless the input is either: - Included in the set of known TimeZone IDs
- A "CustomID" specified as a numeric offset from "GMT"
 - Parameters:
- ID- Either a TimeZone ID found in KNOWN_TIMEZONE_IDS, or a "CustomID" specified as a GMT offset.
- Returns:
- A TimeZone object corresponding to the input, or null if no such TimeZone is supported.
- See Also:
- KNOWN_TIMEZONE_IDS,- TimeZone
 
 
- 
 
-