src/edu/kit/informatik/calendar_sample/Time.java
/**
     * Converts the specified count of seconds to a time of day.
     * 
     * <p>Note that the returned time will be within a 24-hour cycle. Any exceeding day will be discarded.
     * <blockquote><pre>
     * Time t0 = ofSeconds(seconds);
     * Time t1 = ofSeconds(seconds % {@value #SECONDS_IN_DAY});
     * assert t0.isEqual(t1);</pre>
     * </blockquote>
     * 
     * @param  seconds the seconds
     * @return the time
     */
Converts the specified count of seconds to a time of day.

Note that the returned time will be within a 24-hour cycle. Any exceeding day will be discarded.

@param  seconds the seconds
@return the time
Converts the specified count of seconds to a time of day . Note that the returned time will be within a 24 - hour cycle . Any exceeding day will be discarded . @param seconds the seconds @return the time
public static Time ofSeconds(
            final long seconds) {
        int time = (int) DateUtil.mod(seconds, SECONDS_IN_DAY);
        final int second = time - (time /= SECONDS_IN_MINUTE) * SECONDS_IN_MINUTE;
        final int minute = time - (time /= MINUTES_IN_HOUR)   * MINUTES_IN_HOUR;
        final int hour   = time;
        return new Time(hour, minute, second);
    }
public static Time ofSeconds ( final long seconds ) { int time = ( int ) DateUtil . mod ( seconds , SECONDS_IN_DAY ) ; final int second = time - ( time /= SECONDS_IN_MINUTE ) * SECONDS_IN_MINUTE ; final int minute = time - ( time /= MINUTES_IN_HOUR ) * MINUTES_IN_HOUR ; final int hour = time ; return new Time ( hour , minute , second ) ; }
Converts the specified count of seconds to a time of day.
Converts the specified count of seconds to a time of day .
////