Dim buf() As Byte = Array As Byte(0xEE, 0x63, 0xDF, 0x65)
Dim DT As Long = 0
For I = 3 To 0 Step -1 'start at high byte to simplify shifting
DT = Bit.ShiftLeftLong(DT, 8) + Bit.And(buf(I), 0xFF) 'convert signed Byte to unsigned
Next
DT = DT * 1000 'convert from time_t seconds to B4A/Java milliseconds (both start at 1/1/1970 epoch)
Log(DT)
Log(DateTime.Date(DT) & " " & DateTime.Time(DT))