import time


def strLocalTime(str_format):
    """
    .. _strLocalTime :
    
    Return the system local date and time as a string according to the given format.

    Parameters
    ----------
    str_format : str
        Date/Time code format.

        Example: '%Y-%m-%d, %H:%M:%S'


    Returns
    -------
    str_date_time : str
        Formatted system local date time string.
    """

    str_date_time = time.strftime(str_format, time.localtime())

    return str_date_time