这两个 TimeSpan 以 24 小时格式存储在数据库中。没有日期,只有时间跨度。
Dim r As TimeSpan
Dim tsStart As TimeSpan
Dim tsEnd As TimeSpan
'tsStard is 12:27:30 (pm) this happened first
'tsEnd is 00:10:25 (am) then this happened later
'You can't store 24:10:25 in the column type Time(7)
r = tsEnd.Subtract(tsStart)
'r = -12:17:05
是否有任何 TimeSpan 方法可以做到这一点?谢谢你。