我正在尝试解决并获取程序中的总运行时间。以下是示例:
提前谢谢!
获取两个datetimepicker的Datediff,然后减去Datediff和文本框值的总和。
Dim HoursDiff = DateDiff(DateInterval.Hour, DTPTS.Value, DTPTE.Value)
Dim minutesDiff = DateDiff(DateInterval.Minute, DTPTS.Value, DTPTE.Value)
Dim totalMin As Integer = minutesDiff Mod 60
Dim TotalTOT As String = HoursDiff & ":" & totalMin
Dim totalcomTOT As Integer = TotalTOT - txtboxDownTime.text
TxtboxTOTint.Text = totalcomTOT