def findTimeColumn(row):
    'Dynamically determine which column of a log file contains dates.\n\n    Parameters:\n        row: A row of a logfile\n    Returns:\n        iterator: An integer defining the row that contains a valid date\n            string.\n    '
    import dateparser
    iterator = 0
    for item in row:
        if item.isdigit():
            iterator += 1
            continue
        this = dateparser.parse(item)
        if this:
            return iterator
        iterator += 1
    return None
Dynamically determine which column of a log file contains dates.

Parameters:
    row: A row of a logfile
Returns:
    iterator: An integer defining the row that contains a valid date
        string.
def findTimeColumn(row):
    'Dynamically determine which column of a log file contains dates.\n\n    Parameters:\n        row: A row of a logfile\n    Returns:\n        iterator: An integer defining the row that contains a valid date\n            string.\n    '
    import dateparser
    iterator = 0
    for item in row:
        if item.isdigit():
            iterator += 1
            continue
        this = dateparser.parse(item)
        if this:
            return iterator
        iterator += 1
    return None