Dim dt1 As New Date(2008, 2, 17, 18, 0, 0) Dim dt2 As New Date(2008, 2, 17, 19, 30, 0) Dim span As TimeSpan = dt2 - dt1 Dim seconds As Double = span.TotalSeconds MsgBox($"経過時間は {seconds} 秒です。")