from datetime import datetime


def str_to_time(dt_str: str) -> datetime:
    """
    Converts a time in string format "%H:%M:%S" to datetime format.

    Parameters
    ----------
    dt_str : str
        Represents a time in string format

    Returns
    -------
    datetime
        Represents a time in datetime format

    Examples
    --------
    >>> from pymove.utils.datetime import str_to_time
    >>> str_to_time("08:00:00")
    datetime(1900, 1, 1, 8, 0)
    """
    return datetime.strptime(dt_str, '%H:%M:%S')