How to convert Datetime Octetstring to ASCII. I read through one of the example in python netsnmp but still not able to solve it.
This is what I received from gosnmp as slice of []uint8
[7 224 1 28 20 5 42 0 43 0 0]
or Go-syntax representation of the value
[]byte{0x7, 0xe0, 0x1, 0x1c, 0x14, 0x4, 0x2a, 0x0, 0x2b, 0x0, 0x0}
And output in datetime should be something like this:
2015-10-7,17:23:27.0,+0:0
here is the mibs:oid: HOST-RESOURCES-MIB::hrSWInstalledDate
Can someone give me some idea on how to use binary to decode that into human readable ascii or strings.