VB求时间差,精确到时分秒
发布网友
发布时间:2023-07-17 17:21
我来回答
共2个回答
热心网友
时间:2023-10-05 12:23
t1 = "2014/4/28 10:00:00"
t2 = "2014/4/29 11:01:01"
h = Int(DateDiff("s", t1, t2) / 3600)
m = Int((DateDiff("s", t1, t2) - h * 3600) / 60)
s = DateDiff("s", t1, t2) - h * 3600 - m * 60
MsgBox h & ":" & m & ":" & s
热心网友
时间:2023-10-05 12:23
转换成秒减,