Dim t As Long = ParseTimeDuration("09:29")
t = t / 3
Log(ConvertMillisecondsToString(t))
Private Sub ParseTimeDuration(HHMM As String) As Long
Dim s() As String = Regex.Split(":", HHMM)
Dim t As Long = s(0) * DateTime.TicksPerHour + s(1) * DateTime.TicksPerMinute
If s.Length = 3 Then
t = t + s(2) * DateTime.TicksPerSecond
End If
Return t
End Sub
Private Sub ConvertMillisecondsToString(t As Long) As String
Dim hours, minutes, seconds As Int
hours = t / DateTime.TicksPerHour
minutes = (t Mod DateTime.TicksPerHour) / DateTime.TicksPerMinute
seconds = (t Mod DateTime.TicksPerMinute) / DateTime.TicksPerSecond
Return $"$2.0{hours}:$2.0{minutes}:$2.0{seconds}"$
End Sub