title: Interpolation of time series
body: <p>there eries of time range of Type DateTime in COM,but i need to fetch the maximum of fixed number of items from that series.How to interpolate this seris so that i can fetch fixed number of items</p>
  
  <p>For example i have DATETIME collection of 1000 values from that i need to take only 20 values(including first and last record). what is the time span i need to check for iteration</p>
  
  <pre><code>DateTime time1 = new DateTime(2014, 11, 12, 12, 10, 0, 0);
   DateTime time2 = new DateTime(2014, 11, 12, 12, 27, 0, 0);
  
   int maxitems = 20;
   double dTimeSlices = Math.Floor((maxitems) / 2.0);
   double dTimeSpan = (time2.Ticks - time1.Ticks);
   double dSliceSpan = ts.Ticks / dTimeSlices;
  </code></pre>