from datetime import datetime


def get_current_time(str_option="dt"):
    """
    Captures the current time and returns it. Will return both date
    and time, or just one depending on the str_option provided.
    """
    now = datetime.now()
    str_option = str_option.lower()
    if str_option == "dt":
        return now.strftime("%m/%d/%Y") + ", " + now.strftime("%H:%M:%S")
    if str_option == "d":
        return now.strftime("%m/%d/%Y")
    if str_option == "t":
        return now.strftime("%H:%M:%S")
    return "Invalid selection.  Choose d for date, t for time, or dt for date + time."