title: Does Ruby have an equivalent to TimeSpan in C#?
body: <p>In C# there is a TimeSpan class. It represents a period of time and is returned from many date manipulation options. You can create one and add or subtract from a date etc.</p>
  
  <p>In Ruby and specifically rails there seems to be lots of date and time classes but nothing that represents a span of time?</p>
  
  <p>Ideally I'd like an object that I could use for outputting formatted dates easily enough using the standard date formatting options.</p>
  
  <p>eg.</p>
  
  <pre><code>ts.to_format("%H%M")
  </code></pre>
  
  <p>Is there such a class?</p>
  
  <p>Even better would be if I could do something like</p>
  
  <pre><code>   ts = end_date - start_date
  </code></pre>
  
  <p>I am aware that subtracting of two dates results in the number of seconds separating said dates and that I could work it all out from that.</p>