By Lotusv, 8 October, 2021 Forums General discussion I'm reading data from Load Profile (OBIS 0.0.99.1.0.255, Actaris Itron SL7000). I get bytearray, convert in hex and get: 07E50A08FFFFFFFFFF8000FF How can i convert this to human readable date/time format? I didn’t find the functions or examples I needed. in Python.... Help me, please. Hi, Hi, You can convert byte array to date time using changeType -method. Something like this: data = GXByteBuffer.hexToBytes("07E50A08FFFFFFFFFF8000FF") GXDLMSClient.changeType(data, DataType.DATETIME); BR, Mikko Thanks! It worked! Thanks! It worked! Helped timestamp = GXDLMSClient.changeType (data, DataType.DATETIME) Basically I already guessed: For example: 07e50a06ff110936ff8000ff 07e5 - 2021 (year) 0a - 10 (month) 06 - 6 (day) ff -? 11 - 17 (hour) 09 - 09 (minute) 36 - 54 (second) ff -? 80 -? 00 -? ff -? Log in or register to post comments
Hi, Hi, You can convert byte array to date time using changeType -method. Something like this: data = GXByteBuffer.hexToBytes("07E50A08FFFFFFFFFF8000FF") GXDLMSClient.changeType(data, DataType.DATETIME); BR, Mikko
Thanks! It worked! Thanks! It worked! Helped timestamp = GXDLMSClient.changeType (data, DataType.DATETIME) Basically I already guessed: For example: 07e50a06ff110936ff8000ff 07e5 - 2021 (year) 0a - 10 (month) 06 - 6 (day) ff -? 11 - 17 (hour) 09 - 09 (minute) 36 - 54 (second) ff -? 80 -? 00 -? ff -?
Hi,
Hi,
You can convert byte array to date time using changeType -method.
Something like this:
data = GXByteBuffer.hexToBytes("07E50A08FFFFFFFFFF8000FF")
GXDLMSClient.changeType(data, DataType.DATETIME);
BR,
Mikko
Thanks! It worked!
Thanks! It worked!
Helped
timestamp = GXDLMSClient.changeType (data, DataType.DATETIME)
Basically I already guessed:
For example: 07e50a06ff110936ff8000ff
07e5 - 2021 (year)
0a - 10 (month)
06 - 6 (day)
ff -?
11 - 17 (hour)
09 - 09 (minute)
36 - 54 (second)
ff -?
80 -?
00 -?
ff -?