i found a bug in b4j & b4a.
it seems like the Parsing from string to long is wrong. the weird thing is that it will work in some case and in some not.
this code will return a wrong number of minutes:
log = 1320 but it should be 1380 (23 hours)
it seems like the Parsing from string to long is wrong. the weird thing is that it will work in some case and in some not.
this code will return a wrong number of minutes:
B4X:
Dim d1, t1, d2, t2 As String
d1 = "23/03/2017"
t1 = "18:00:00"
d2 = "24/03/2017"
t2 = "17:00:00"
DateTime.DateFormat = "dd/MM/yyyy"
DateTime.TimeFormat = "HH:mm:ss"
Dim start, endtime As Long
start = DateTime.DateTimeParse(d1,t1)
endtime = DateTime.DateTimeParse(d2,t2)
Log((endtime - start) / DateTime.TicksPerMinute)
log = 1320 but it should be 1380 (23 hours)