def parse_dos_time(stamp):
 (sec, stamp) = ((stamp & 31), (stamp >> 5))
 (mn, stamp) = ((stamp & 63), (stamp >> 6))
 (hr, stamp) = ((stamp & 31), (stamp >> 5))
 (day, stamp) = ((stamp & 31), (stamp >> 5))
 (mon, stamp) = ((stamp & 15), (stamp >> 4))
 yr = ((stamp & 127) + 1980)
 return (yr, mon, day, hr, mn, (sec * 2))

def parse_dos_time ( stamp ) : ( sec , stamp ) = ( ( stamp & 31 ) , ( stamp >> 5 ) ) ( mn , stamp ) = ( ( stamp & 63 ) , ( stamp >> 6 ) ) ( hr , stamp ) = ( ( stamp & 31 ) , ( stamp >> 5 ) ) ( day , stamp ) = ( ( stamp & 31 ) , ( stamp >> 5 ) ) ( mon , stamp ) = ( ( stamp & 15 ) , ( stamp >> 4 ) ) yr = ( ( stamp & 127 ) + 1980 ) return ( yr , mon , day , hr , mn , ( sec * 2 ) )
parse standard 32-bit dos timestamp .