Hi Everyone,
Has anyone mad a function that allows the programmer to pass seconds into it and have it return just the seconds portion?
For exaple, a function called fcnNumberOfSeconds:
Let's say the number passed to it is 95 which is 1 minute 35 seconds. I'm looking for the function to return the number 35.
Does B4A have a time function that does this?
Has anyone mad a function that allows the programmer to pass seconds into it and have it return just the seconds portion?
For exaple, a function called fcnNumberOfSeconds:
B4X:
Sub fcnNumberOfSeconds (intSeconds As Int) As Int
Dim intReturnValue As Int = 0
' Code to extract just the seconds from the number passed in.
'------------------------------------------------------------
Return intReturnValue
End Sub
Let's say the number passed to it is 95 which is 1 minute 35 seconds. I'm looking for the function to return the number 35.
Does B4A have a time function that does this?