private Time getTimeFromFields() {
		int activityId = getSelectedActivity().getIdActivity();
		Calendar startTimeCal = getStartTimeFromFields();
		Calendar endTimeCal = getEndTimeFromFields();
		Timestamp startTime = null;
		Timestamp endTime = null;
		long duration = -1;
		if (startTimeCal != null) {
			startTime = new Timestamp(startTimeCal.getTimeInMillis());
		}
		if (endTimeCal != null) {
			endTime = new Timestamp(endTimeCal.getTimeInMillis());
		}
		if (startTime != null && endTime != null) {
			duration = Controller.calculateDuration(startTimeCal, endTimeCal);
		}
		String description = txaDescription.getText();
		
		return new Time(activityId, startTime, endTime, duration, description);
	}