Time difference between two indexes.

 

How do I get the time difference from two points within an indicator. I have two indexes and I want to know the difference in time between them, or the amount of candles from e.g  index1 to index2. 


Thanks! 

 

Really? How bout index2-index1 ... ? ... and the absolute time with time[index2]-time[index1] ...

Reason: