def seconds_in_day_to_time(seconds):
    """Decomposes atime of day into hour, minute and seconds components.

    Arguments
    ---------
    seconds : int
        A time of day by the number of seconds passed since midnight.

    Returns
    -------
    datetime.time
        The corresponding time of day as a datetime.time object.

    Example
    -------
    >>> seconds_in_day_to_time(23430)
    datetime.time(6, 30, 30)
    """
    try:
        return time(*decompose_seconds_in_day(seconds))
    except ValueError:
        print("Seconds = {}".format(seconds))
        print("H = {}, M={}, S={}".format(*decompose_seconds_in_day(seconds)))
        raise
Decomposes atime of day into hour, minute and seconds components.

    Arguments
    ---------
    seconds : int
        A time of day by the number of seconds passed since midnight.

    Returns
    -------
    datetime.time
        The corresponding time of day as a datetime.time object.

    Example
    -------
    >>> seconds_in_day_to_time(23430)
    datetime.time(6, 30, 30)