TotalHours

将时段值转换为以小时为单位的数值,含小数,例如某个时段数据的值是1天6小时30分,那么其TotalHours属性为30.5

例如:

Dim t As New TimeSpan(1,6,30,0)
Dim
Hours As Double
Hours = t.TotalHours

 


本页地址:http://www.foxtable.com/webhelp/topics/0295.htm