I get a strange result, when i try to convert an Epoch Timestamp.
Using this code
I get the follwing result in the LogViewer:
EPOCH converted to: 21/23/12 09:21:13
The Time is correct, but the Date is wrong. Do i miss something here ?
Bernd
Using this code
B4X:
Dim Starttime As Long
Dim StartTimeText As String
DateTime.TimeFormat = "mm/dd/yy hh:mm:ss"
Starttime = 1332534073
StartTimeText = DateTime.Time(Starttime*1000)
Log("EPOCH converted to: "& StartTimeText)
I get the follwing result in the LogViewer:
EPOCH converted to: 21/23/12 09:21:13
The Time is correct, but the Date is wrong. Do i miss something here ?
Bernd