Examples of HourMinuteSecond


Examples of org.fenixedu.academic.util.HourMinuteSecond

        DateTime currentDate = new DateTime();
        return currentDate.isBefore(this.getBeginningDateTime());
    }

    public DateTime getBeginningDateTime() {
        HourMinuteSecond begin = this.getBeginningDateHourMinuteSecond();
        YearMonthDay yearMonthDay = this.getDayDateYearMonthDay();
        return new DateTime(yearMonthDay.getYear(), yearMonthDay.getMonthOfYear(), yearMonthDay.getDayOfMonth(), begin.getHour(),
                begin.getMinuteOfHour(), 0, 0);

    }
View Full Code Here

Examples of org.fenixedu.academic.util.HourMinuteSecond

                begin.getMinuteOfHour(), 0, 0);

    }

    public DateTime getEndDateTime() {
        HourMinuteSecond end = this.getEndDateHourMinuteSecond();
        YearMonthDay yearMonthDay = this.getDayDateYearMonthDay();
        return new DateTime(yearMonthDay.getYear(), yearMonthDay.getMonthOfYear(), yearMonthDay.getDayOfMonth(), end.getHour(),
                end.getMinuteOfHour(), 0, 0);

    }
View Full Code Here

Examples of org.fenixedu.academic.util.HourMinuteSecond

        return new DiaSemana(DiaSemana.getDiaSemana(getDayDateYearMonthDay()));
    }

    @jvstm.cps.ConsistencyPredicate
    protected boolean checkRequiredParameters() {
        HourMinuteSecond beginTime = getBeginningDateHourMinuteSecond();
        HourMinuteSecond endTime = getEndDateHourMinuteSecond();
        return getDayDateYearMonthDay() != null && beginTime != null && endTime != null && endTime.isAfter(beginTime);
    }
View Full Code Here

Examples of org.fenixedu.academic.util.HourMinuteSecond

        }
    }

    public DateTime getEnrolmentPeriodStart() {
        final YearMonthDay yearMonthDay = getEnrollmentBeginDayDateYearMonthDay();
        final HourMinuteSecond hourMinuteSecond = getEnrollmentBeginTimeDateHourMinuteSecond();
        return toDateTime(yearMonthDay, hourMinuteSecond);
    }
View Full Code Here

Examples of org.fenixedu.academic.util.HourMinuteSecond

        return toDateTime(yearMonthDay, hourMinuteSecond);
    }

    public DateTime getEnrolmentPeriodEnd() {
        final YearMonthDay yearMonthDay = getEnrollmentEndDayDateYearMonthDay();
        final HourMinuteSecond hourMinuteSecond = getEnrollmentEndTimeDateHourMinuteSecond();
        return toDateTime(yearMonthDay, hourMinuteSecond);
    }
View Full Code Here

Examples of org.fenixedu.academic.util.HourMinuteSecond

        return end.get(Calendar.MINUTE) > 0 ? endHour + 1 : endHour;
    }

    public HourMinuteSecond getBeginHourMinuteSecond() {
        final Calendar start = getInicio();
        return new HourMinuteSecond(start.get(Calendar.HOUR_OF_DAY), start.get(Calendar.MINUTE), start.get(Calendar.SECOND));
    }
View Full Code Here

Examples of org.fenixedu.academic.util.HourMinuteSecond

        return new HourMinuteSecond(start.get(Calendar.HOUR_OF_DAY), start.get(Calendar.MINUTE), start.get(Calendar.SECOND));
    }

    public HourMinuteSecond getEndHourMinuteSecond() {
        final Calendar end = getFim();
        return new HourMinuteSecond(end.get(Calendar.HOUR_OF_DAY), end.get(Calendar.MINUTE), end.get(Calendar.SECOND));
    }
View Full Code Here

Examples of org.fenixedu.academic.util.HourMinuteSecond

    public String getSelectedDateString() throws FenixServiceException {
        return new LocalDate(getYear(), getMonth(), getDay()).toString("dd/MM/yyyy");
    }

    public String getSelectedBeginHourString() throws FenixServiceException {
        return new HourMinuteSecond(getBeginHour(), getBeginMinute(), 0).toString("HH:mm");
    }
View Full Code Here

Examples of org.fenixedu.academic.util.HourMinuteSecond

    public String getSelectedBeginHourString() throws FenixServiceException {
        return new HourMinuteSecond(getBeginHour(), getBeginMinute(), 0).toString("HH:mm");
    }

    public String getSelectedEndHourString() throws FenixServiceException {
        return new HourMinuteSecond(getEndHour(), getEndMinute(), 0).toString("HH:mm");
    }
View Full Code Here

Examples of org.fenixedu.academic.util.HourMinuteSecond

    public Space getRoom() {
        return getSpace();
    }

    public Calendar getStartTime() {
        HourMinuteSecond hms = getStartTimeDateHourMinuteSecond();
        Date date =
                (hms == null) ? null : new java.util.Date(0, 0, 1, hms.getHour(), hms.getMinuteOfHour(), hms.getSecondOfMinute());
        if (date != null) {
            Calendar result = Calendar.getInstance();
            result.setTime(date);
            return result;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.