(dosDateTime)
return time.localtime(time.mktime((year, month, day, hour, minute, second, 0, 1, -1)))
Convert an MS-DOS format date time to a Python time tuple.
Convert an MS-DOS format date time to a Python time tuple.
Convert an MS - DOS format date time to a Python time tuple .
def DosDateTimeToTimeTuple(dosDateTime):
    """Convert an MS-DOS format date time to a Python time tuple.
    """
    dosDate = dosDateTime >> 16
    dosTime = dosDateTime & 0xffff
    day = dosDate & 0x1f
    month = (dosDate >> 5) & 0xf
    year = 1980 + (dosDate >> 9)
    second = 2*(dosTime & 0x1f)
    minute = (dosTime >> 5) & 0x3f
    hour = dosTime >> 11
    return time.localtime(time.mktime((year, month, day, hour, minute, second, 0, 1, -1)))
def DosDateTimeToTimeTuple ( dosDateTime ) : dosDate = dosDateTime >> 16 dosTime = dosDateTime & 0xffff day = dosDate & 0x1f month = ( dosDate >> 5 ) & 0xf year = 1980 + ( dosDate >> 9 ) second = 2 * ( dosTime & 0x1f ) minute = ( dosTime >> 5 ) & 0x3f hour = dosTime >> 11 return time . localtime ( time . mktime ( ( year , month , day , hour , minute , second , 0 , 1 , - 1 ) ) )