Examples of toDateTimeAtStartOfDay()


Examples of org.joda.time.LocalDate.toDateTimeAtStartOfDay()

        DateTimeZone startTz = DateTimeZone.forTimeZone(consensusTimezones.get(this.startDate));
        DateTimeZone endTz = DateTimeZone.forTimeZone(consensusTimezones.get(this.endDate));

        this.start = beginningOfWeek.toDateTimeAtStartOfDay(startTz).getMillis();
        this.end = endOfWeek.toDateTimeAtStartOfDay(endTz).getMillis() + DateTimeConstants.MILLIS_PER_DAY;
    }

    @Override
    protected TimeUnit getTimespanTimeUnit() {
        return TimeUnit.WEEK;
View Full Code Here

Examples of org.joda.time.LocalDate.toDateTimeAtStartOfDay()

                            // TODO This daft catch is required my MySQL, which
                            // also requires the TimeZone offset to be
                            // "undone"
                            final LocalDate localDate = (LocalDate) value;
                            final int millisOffset = -DateTimeZone.getDefault().getOffset(null);
                            final Date javaDate = localDate.toDateTimeAtStartOfDay(DateTimeZone.forOffsetMillis(millisOffset)).toDate();

                            statement.setObject(i, javaDate, java.sql.Types.DATE);
                        }
                    } else {
                        statement.setObject(i, value);
View Full Code Here

Examples of org.joda.time.LocalDate.toDateTimeAtStartOfDay()

                        @Override
                        public Date get() {
                            LocalDate startDate = calendarAvailability
                                    .getStartDate();
                            if (startDate != null) {
                                return startDate.toDateTimeAtStartOfDay()
                                        .toDate();
                            }
                            return null;
                        }
View Full Code Here

Examples of org.joda.time.LocalDate.toDateTimeAtStartOfDay()

                        @Override
                        public Date get() {
                            LocalDate endDate = calendarAvailability
                                    .getEndDate();
                            if (endDate != null) {
                                return endDate.toDateTimeAtStartOfDay()
                                        .toDate();
                            }
                            return null;
                        }
View Full Code Here

Examples of org.joda.time.LocalDate.toDateTimeAtStartOfDay()

        LocalDate dateNrOfDaysBack = new LocalDate()
                .minusDays(nrDaysTimesheetToTim);

        List<WorkReportLine> workReportLines = order.getWorkReportLines(
                dateNrOfDaysBack.toDateTimeAtStartOfDay().toDate(), new Date(),
                true);
        if (workReportLines == null || workReportLines.isEmpty()) {
            LOG.warn("No work reportlines are found for order: '"
                    + order.getName() + "'");
            synchronizationInfo.addFailedReason(_(
View Full Code Here

Examples of org.joda.time.LocalDate.toDateTimeAtStartOfDay()

    }

    private Date givenDeadLine(int months) {
        LocalDate date = new LocalDate();
        date.plusMonths(months);
        return date.toDateTimeAtStartOfDay().toDate();
    }

    public CustomerCommunication createValidCustomerCommunication() {
        Order order = createValidOrder("Order A");
        CustomerCommunication customerCommunication = CustomerCommunication
View Full Code Here

Examples of org.joda.time.LocalDate.toDateTimeAtStartOfDay()

    private Interval calculateForAtLeastMinimum(Interval atLeastMinimum) {
        LocalDate start = round(atLeastMinimum.getStart(), true);
        LocalDate finish = round(atLeastMinimum.getFinish(), false);
        Interval result = new Interval(start.toDateTimeAtStartOfDay().toDate(),
                finish.toDateTimeAtStartOfDay().toDate());
        return result;
    }

    public abstract double daysPerPixel();
View Full Code Here

Examples of org.joda.time.LocalDate.toDateTimeAtStartOfDay()

                    .getLastAdvanceMeasurement(directAdvanceAssignment);
             if(greatAdvanceMeasurement != null){
                 Listcell date = (Listcell) selectedItem.getChildren().get(4);
                 LocalDate newDate = greatAdvanceMeasurement.getDate();
                 if (newDate != null) {
                     ((Datebox) date.getFirstChild()).setValue(newDate
                            .toDateTimeAtStartOfDay().toDate());
                 } else {
                    ((Datebox) date.getFirstChild()).setValue(null);
                }
             }
View Full Code Here

Examples of org.joda.time.LocalDate.toDateTimeAtStartOfDay()

            } else {
                String errorMessage = validateDateAdvanceMeasurement(
                        new LocalDate(value), advanceMeasurement);
                LocalDate date = advanceMeasurement.getDate();
                if (date != null) {
                    ((Datebox) comp).setValue(date.toDateTimeAtStartOfDay()
                            .toDate());
                }
                if (errorMessage != null) {
                    throw new WrongValueException(comp, errorMessage);
                }
View Full Code Here

Examples of org.joda.time.LocalDate.toDateTimeAtStartOfDay()

        Hbox dateHbox = new Hbox();
        dateHbox.appendChild(new Label(_("Select date")));

        LocalDate initialDate = earnedValueChartFiller
                .initialDateForIndicatorValues();
        Datebox datebox = new Datebox(initialDate.toDateTimeAtStartOfDay()
                .toDate());
        dateHbox.appendChild(datebox);

        appendEventListenerToDateboxIndicators(earnedValueChartFiller, vbox,
                datebox);
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.