public static Appointment getEvent(String name, int startHour24,
			int durationSeconds)
	{
		Appointment event = new Appointment();
		event.setName(name);

		Time time = new Time();
		time.setHour24(startHour24);

		TimeSlot timeSlot = new TimeSlot();
		timeSlot.setStartDate(time.getLocalDateTime());

		time.addSeconds(durationSeconds);
		timeSlot.setEndDate(time.getLocalDateTime());

		event.setTimeSlot(timeSlot);

		return event;
	}
public static Appointment getEvent ( String name , int startHour24 , int durationSeconds ) { Appointment event = new Appointment ( ) ; event . setName ( name ) ; Time time = new Time ( ) ; time . setHour24 ( startHour24 ) ; TimeSlot timeSlot = new TimeSlot ( ) ; timeSlot . setStartDate ( time . getLocalDateTime ( ) ) ; time . addSeconds ( durationSeconds ) ; timeSlot . setEndDate ( time . getLocalDateTime ( ) ) ; event . setTimeSlot ( timeSlot ) ; return event ; }
@param name
@param startHour24
@param durationSeconds
@return a new event