Difference of two timedelta objects, with timezones
<p>I would like to calculate how many hours there are in a date interval: for example "2014.03.29-30" should give 47, because of the daylight savings.</p>

<p>My method is making two datetime objects, in the example the following:</p>

<pre><code>datetime.datetime(2014, 3, 29, 0, 0, tzinfo=&lt;DstTzInfo 'Europe/Budapest' LMT+1:16:00 STD&gt;)
datetime.datetime(2014, 3, 30, 23, 59, tzinfo=&lt;DstTzInfo 'Europe/Budapest' LMT+1:16:00 STD&gt;)
return (date2-date1) + timedelta(minutes=1)
</code></pre>

<p>However, it gives "2 days, 0:00:00", which is not correct. How could I make a timedelta object which takes timezones and dst into account? Also, if there's a simpler solution for the whole problem, I'm open to it.</p>

<p>Thank you!</p>