36 var orderTime = order.
Time.ConvertFromUtc(exchangeHours.TimeZone);
49 var cutOffTimeSpan = TimeSpan.FromHours(17);
51 orderTime = order.
Time.ConvertFromUtc(cutOffTimeZone);
52 var expiryTime = orderTime.Date.Add(cutOffTimeSpan);
53 if (orderTime.TimeOfDay > cutOffTimeSpan)
56 expiryTime = expiryTime.AddDays(1);
59 expired = time.ConvertTo(exchangeHours.TimeZone, cutOffTimeZone) >= expiryTime;
65 expired = time.Date > orderTime.Date;
75 expired = time >= exchangeHours.GetNextMarketClose(orderTime,
false);