How to subtract datetime
-s accurately, without including weekend times?
Example:
datetime gapOpenTime = 2015.01.01 00:00;
datetime gapCloseTime = 2015.12.19 00:00;
int diff = gapCloseTime - gapOpenTime;
This diff
includes also weekend times ( when the market is closed )
How to remove these unwanted times?