diff options
Diffstat (limited to 'Mac/Lib/lib-toolbox')
-rw-r--r-- | Mac/Lib/lib-toolbox/aepack.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Mac/Lib/lib-toolbox/aepack.py b/Mac/Lib/lib-toolbox/aepack.py index 94a0f53..82f1045 100644 --- a/Mac/Lib/lib-toolbox/aepack.py +++ b/Mac/Lib/lib-toolbox/aepack.py @@ -162,6 +162,9 @@ def unpack(desc): return mkkeyword(desc.data) if t == typeLongInteger: return struct.unpack('l', desc.data)[0] + if t == typeLongDateTime: + a, b = struct.unpack('lL', desc.data) + return (long(a) << 32) + b if t == typeNull: return None if t == typeMagnitude: |