import datetime


def secs_to_datetime(secs: int):
    """
    Creates a datetime time object from a seconds from midnight

    Args:
        secs: seconds from midnight
    Returns:
        dt: datetime.time object representing time
    """

    dt = (datetime.datetime.min + datetime.timedelta(seconds=secs)).time()

    return dt