SubMatrix
以下のマトリックスのまたはを作成したいと思いますArrayList
(収まるように小さくしました)。ここで、tradeTime>sessionBeginおよび<sessionEndです。
DateTime tradeTime;
private DateTime sessionBegin;
private DateTime sessionEnd;
int[,] hTrades =
{
{ 2012, 11, 9, 10, 24, 1, -1, 8515 },
{ 2012, 11, 9, 10, 24, 2, -1, 8515 },
{ 2012, 11, 9, 10, 44, 3, 1, 8530 },
{ 2012, 11, 9, 10, 44, 4, 1, 8535 },
{ 2012, 11, 9, 10, 55, 5, -1, 8537 },
{ 2012, 11, 9, 10, 55, 6, -1, 8537 },
{ 2012, 11, 9, 11, 1, 7, 1, 8552 },
{ 2012, 11, 9, 11, 7, 8, 1, 8556 },
{ 2012, 11, 11, 18, 18, 1, 1, 8617 },
{ 2012, 11, 11, 18, 18, 2, 1, 8617 },
{ 2012, 11, 11, 18, 18, 3, 1, 8617 },
{ 2012, 11, 11, 18, 18, 4, 1, 8617 }
};
tradeTime = new DateTime(hTrades[i, 0], hTrades[i, 1], hTrades[i, 2],
hTrades[i, 3], hTrades[i, 4], 0);