def TimeToInt( time_string ):
    """
    Function used to convert a time-string into an integer.

    Args:
        time_string ( string ): the time-string.

    Returns:
        int: the converted time-string into int.
    
    Testing:
        >>> TimeToInt( "2022.03.14 09:20:00.000" )
        20220314092000000
        >>> TimeToInt( "2022.03.14 09:20:00" )
        20220314092000
        >>> TimeToInt( "2022.03.14 09:20:00" ) + 3
        20220314092003
    """
    
    time_string = time_string.replace( ":", "" )
    time_string = time_string.replace( ".", "" )
    time_string = time_string.replace( " ", "" )
    
    return int( time_string )