Hi all,
In my program I need to pinpoint the moment the user started.
I tried it this way, but it doesnt work:
In my program I need to pinpoint the moment the user started.
I tried it this way, but it doesnt work:
B4X:
Sub START_Click
Dim Begin As String
Dim H,M,S,StartTime As Int
Begin = DateTime.Time(DateTime.Now) 'this is OK
DateTime.GetHour(H) 'this returns 0
DateTime.GetMinute(M) 'this returns 0
DateTime.GetSecond(S) 'this returns 0
StartTime = H*3600+M*60+S
display1.Text = Begin & " = 00.00" 'on display1 we see the real time of the moment
display2.Text = StartTime 'but on display2 we see only a zero
End Sub