如何将表示分钟的int
值(即:)转换为如下所示的值:()。1800
dd:hh:mm
days:hours:minutes
所以1800
应该转换成1:06:00
(1 day 6 hours 0 minutes
)。
在存储过程中,我有这个:
SELECT
Record_ID, Project_ID, Ticket_ID, WO_Type, DC, Title, Device_Quantity,
Total/1440 as Total,
((Total - Elapsed) - DATEDIFF(mi, Record_Time, getdate())) as FinalTimeLeft,
Completed
FROM Record
我将如何将转换实施到 SP 中?多于FinalTimeLeft=1800