-
Notifications
You must be signed in to change notification settings - Fork 20
Closed
Milestone
Description
i'm having troubles reading time objects - the resulting object contains an 8 byte binary buffer, but I'm not sure how to interpret it
example: (serialized date is around 1/1/2016)
serialized_time_object = '\xac\xed\x00\x05sr\x00\rjava.time.Ser\x95]\x84\xba\x1b"H\xb2\x0c\x00\x00xpw\x08\x05\x00\x00\x07\xe0\x01\x01\xffx'
time_object = javaobj.loads(serialized_time_object)
time_object.__dict__
{'annotations': ['\x05\x00\x00\x07\xe0\x01\x01\xff'], 'classdesc':
[java.time.Ser:0x-6AA27B45E4DDB74E]}
struct.unpack('L',time_object.annotations[0])(0)
18374970016350076933L
Metadata
Metadata
Assignees
Labels
No labels