Android Question Convert Time to Minutes only ?

Alhootti

Active Member
Hi guys
I wanna convert Time 1:30 to minutes , it should be 90 minutes
How i can do this by code ?
 

Alhootti

Active Member
B4X:
Dim a As String =  "01:30"
    Dim minutes  As Int
    Dim t1() As String =Regex.Split(":",a)
    Dim t0 As Int = t1(0) *60 +t1(1)
    minutes=Floor(t0)
    Log(minutes)
 
Upvote 0
Top