title: Converts from timedelta into minutes
body: <p>I'm calculating with the variables current time and end_program to get the remaining minutes.</p>
  
  <pre><code>current_time = datetime.timedelta(hours = get_24_hours, minutes = get_24_minutes)
  end_program = datetime.timedelta(hours = int(program_hours), minutes = int(program_minutes))
  current_program = end_program - current_time
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>1:30:00
  2:00:00
  0:45:00
  0:45:00
  0:15:00
  0:15:00
  0:35:00
  </code></pre>
  
  <p>I want to converts the timedelta into minutes:</p>
  
  <pre><code>90
  120
  45
  45
  15
  15
  35
  </code></pre>
  
  <p>As you can see the timedelta <code>0:15:00</code> which it means for 15 minutes so I want to convert it to <code>15</code>, for <code>0:35:00</code> as 35 minutes I want to convert it to <code>35</code>, for <code>0:45:00</code> as 45 minutes I want to convert it to <code>45</code>, but for <code>2:00:00</code> as 2 hours I want to convert it to <code>120</code> as 120 minutes. For <code>1:30:00</code> as 1 hour and 30 minutes I want to convert it to <code>90</code> minutes.</p>
  
  <p>How I can converts from timedelta into minutes?</p>