以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  时间差  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=188137)

--  作者:scj2023
--  发布时间:2023/9/4 13:58:00
--  时间差
如何计算两个时间差(7:20至11:50)
--  作者:有点蓝
--  发布时间:2023/9/4 14:05:00
--  
http://www.foxtable.com/webhelp/topics/0287.htm
--  作者:有点蓝
--  发布时间:2023/9/4 14:07:00
--  
Dim d1 as Date = #9/4/2023 7:20#
Dim
 d2 as Date = #9/4/2023 11:50#
Dim
 t As TimeSpan = d2 - d1
Output.Show(t.Days & 
"天" & t.Hours & "小时" & t.Minutes & "分" & t.Seconds & "秒")