I have the following code
I would like the timer to write this values between 10am and 4pm every day. How can i loop using time?
B4X:
Sub timer1_Tick
Dim datetoday As String
DateTime.DateFormat="M/d/yyyy HH:mm:ss"
datetoday=DateTime.Date(DateTime.Now)
For i = 1 To 10
WriteTextWriter(Ax&","&Ay&","&Az&","&datetoday)
Next
End Sub
I would like the timer to write this values between 10am and 4pm every day. How can i loop using time?