示例#1
0
def unpackDate(bytestr):
    "Returns a Date() of the packed three-byte date passed in"
    year, month, day = struct.unpack('<BBB', bytestr)
    year += 1900
    return Date(year, month, day)