예제 #1
0
    private bool TwoHoursToEndDay()
    {
        DateTime closingTime   = market.TimeTracker.MarketCloseTime;
        TimeSpan hoursToEndDay = closingTime.Subtract(market.GetCurrentTime());

        return(hoursToEndDay <= TimeSpan.FromHours(2));
    }