所以我需要看看是否有至少10分钟的时间让我的操作符为真,所以它知道警告或不在下面是VB.net中的代码
pathinfo()
答案 0 :(得分:-1)
修正了它
Dim LessThanTen As Double
Dim Startt = DateTime.ParseExact(txttimebegin.Text, "h:mm:tt", Nothing)
Dim Endt = DateTime.ParseExact(txttimeend.Text, "h:mm:tt", Nothing)
Dim Duration As TimeSpan = Startt - Endt
If Duration.TotalMinutes < 10 Then
LessThanTen = True
Else
LessThanTen = False
End If