public static bool IsMarketOpenDayUtc(this DateTime p_timeUtc, StockExchangeID p_xchg)
        {
            var tzData = DbUtils.StockExchangeToTimeZoneData[(int)p_xchg];
            DateTime timeLoc = TimeZoneInfo.ConvertTime(p_timeUtc, TimeZoneInfo.Utc, tzData.TimeZoneInfo);

            return IsMarketOpenDayLoc(timeLoc.Date, tzData.CountryID);
        }
예제 #2
0
 internal StockExchangeTimeZoneData(StockExchangeID p_stockExchangeID, CountryID p_countryID, TimeZoneId p_timeZoneID, TimeZoneInfo p_timeZoneInfo)
 {
     StockExchangeID = p_stockExchangeID;
     CountryID = p_countryID;
     TimeZoneID = p_timeZoneID;
     TimeZoneInfo = p_timeZoneInfo;
 }