I have the following code and I want get all minutes from time type.

declare @time time
set @time = '01:30'

declare @minutes int

--select @minutes = convert time to minutes here

select @minutes -- @minutes == 90

Please help.

Edit
Report