<s> TIME_MAP = ( <EOL> ( '<STR_LIT:w>' , <NUM_LIT> ) , <EOL> ( '<STR_LIT:d>' , <NUM_LIT> ) , <EOL> ( '<STR_LIT:h>' , <NUM_LIT> ) , <EOL> ( '<STR_LIT:m>' , <NUM_LIT> ) , <EOL> ( '<STR_LIT:s>' , <NUM_LIT:1> ) <EOL> ) <EOL> def describe_seconds ( value ) : <EOL> """<STR_LIT>""" <EOL> value_vector = [ ] <EOL> for unit , factor in iter ( TIME_MAP ) : <EOL> component , value = int ( value / factor ) , value % factor <EOL> if component : <EOL> value_vector . append ( '<STR_LIT>' % ( component , unit ) ) <EOL> return '<STR_LIT:U+0020>' . join ( value_vector ) </s>
