title: T SQL: How get all minutes from Time type
body: <p>I have the following code and I want get all minutes from time type.</p>
  
  <pre><code>declare @time time
  set @time = '01:30'
  
  declare @minutes int
  
  --select @minutes = convert time to minutes here
  
  select @minutes -- @minutes == 90
  </code></pre>
  
  <p>Please help.</p>