Package yahoofinance.exchanges
Class ExchangeTimeZone
- java.lang.Object
-
- yahoofinance.exchanges.ExchangeTimeZone
-
public class ExchangeTimeZone extends java.lang.Object- Author:
- Stijn Strickx
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Map<java.lang.String,java.util.TimeZone>INDEX_TIMEZONESstatic java.util.Map<java.lang.String,java.util.TimeZone>SUFFIX_TIMEZONES
-
Constructor Summary
Constructors Constructor Description ExchangeTimeZone()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.TimeZoneget(java.lang.String suffix)Get the time zone for a specific exchange suffixstatic java.util.TimeZonegetStockTimeZone(java.lang.String symbol)Get the time zone for a specific stock or index.
-
-
-
Method Detail
-
get
public static java.util.TimeZone get(java.lang.String suffix)
Get the time zone for a specific exchange suffix- Parameters:
suffix- suffix for the exchange in YahooFinance- Returns:
- time zone of the exchange
-
getStockTimeZone
public static java.util.TimeZone getStockTimeZone(java.lang.String symbol)
Get the time zone for a specific stock or index. For stocks, the exchange suffix is extracted from the stock symbol to retrieve the time zone.- Parameters:
symbol- stock symbol in YahooFinance- Returns:
- time zone of the exchange on which this stock is traded
-
-