(amount, tick_rate=1, output_length=2, allow_decimals=True, short=False)
return result
Simple function to convert ticks to a readable time for use in sentences.
    
    TODO: Rounding with lower output lengths, allow decimals at any point, use language file
Simple function to convert ticks to a readable time for use in sentences.
    
    TODO: Rounding with lower output lengths, allow decimals at any point, use language file
Simple function to convert ticks to a readable time for use in sentences . TODO : Rounding with lower output lengths allow decimals at any point use language file
def ticks_to_seconds(amount, tick_rate=1, output_length=2, allow_decimals=True, short=False):  
    """Simple function to convert ticks to a readable time for use in sentences.
    
    TODO: Rounding with lower output lengths, allow decimals at any point, use language file
    """

    output = []
    time_elapsed = amount / tick_rate
    for name, length, limit, decimals in _LENGTH[::-1]:
        if decimals is None or not allow_decimals:
            current = int(time_elapsed // length)
        else:
            current = round(time_elapsed / length, decimals)
            
        if limit is not None:
            current %= limit
        
        if current:
            if short:
                output.append('{}{}'.format(current, name[0]))
            else:
                output.append('{} {}{}'.format(current, name, '' if current == 1 else 's'))
            if len(output) == output_length:
                break
    
    if not output:
        if short:
            output.append('{}{}'.format(current, name[0]))
        else:
            output.append('{} {}s'.format(current, name))
    
    if len(output) > 1:
        result = ' {} '.join((', '.join(output[:-1]), output[-1])).format(LANGUAGE.strings['Words']['And'])
    else:
        result = output[-1]

    return result
def ticks_to_seconds ( amount , tick_rate = 1 , output_length = 2 , allow_decimals = True , short = False ) : output = [ ] time_elapsed = amount / tick_rate for name , length , limit , decimals in _LENGTH [ : : - 1 ] : if decimals is None or not allow_decimals : current = int ( time_elapsed // length ) else : current = round ( time_elapsed / length , decimals ) if limit is not None : current %= limit if current : if short : output . append ( '{}{}' . format ( current , name [ 0 ] ) ) else : output . append ( '{} {}{}' . format ( current , name , '' if current == 1 else 's' ) ) if len ( output ) == output_length : break if not output : if short : output . append ( '{}{}' . format ( current , name [ 0 ] ) ) else : output . append ( '{} {}s' . format ( current , name ) ) if len ( output ) > 1 : result = ' {} ' . join ( ( ', ' . join ( output [ : - 1 ] ) , output [ - 1 ] ) ) . format ( LANGUAGE . strings [ 'Words' ] [ 'And' ] ) else : result = output [ - 1 ] return result