Examples of dayOfWeek()


Examples of Framework.DateTimeData.dayOfWeek()

            Fmt.setTemplate(new TextData("m/yyyy")); //$NON-NLS-1$
            TextData FirstOfMonthText = new TextData("1/"); //$NON-NLS-1$
            FirstOfMonthText.concat( Fmt.formatDate(DateInput) );
            Fmt.setTemplate(new TextData("d/m/yyyy"));
            DateTimeData FirstOfMonth = Fmt.decodeDate(FirstOfMonthText);
            int DateStart = FirstOfMonth.dayOfWeek();

            //  Find out how many days are there in this month
            //  Note that we need to deal with leap year
            int DateEnd = 0;
View Full Code Here

Examples of Framework.DateTimeData.dayOfWeek()

        DateFormat lFormat = new DateFormat(new TextData("m/d/yyyy"), DateFormat.qq_Resolver.cTEMPLATE);
        TextData tt = new TextData();
        tt.concat(pMonth).concat("/1/").concat(pYear);
        lDate.decodeValue(tt, lFormat);

        return lDate.dayOfWeek();
    }

    /**
     * getDaysInMonth<p>
     * :  Copyright 1998 - Marriott International, Inc.<br>
View Full Code Here

Examples of Framework.DateTimeData.dayOfWeek()

            Fmt.setTemplate(new TextData("m/yyyy")); //$NON-NLS-1$
            TextData FirstOfMonthText = new TextData("1/"); //$NON-NLS-1$
            FirstOfMonthText.concat( Fmt.formatDate(DateInput) );
            Fmt.setTemplate(new TextData("d/m/yyyy"));
            DateTimeData FirstOfMonth = Fmt.decodeDate(FirstOfMonthText);
            int DateStart = FirstOfMonth.dayOfWeek();

            //  Find out how many days are there in this month
            //  Note that we need to deal with leap year
            int DateEnd = 0;
View Full Code Here

Examples of com.webobjects.foundation.NSTimestamp.dayOfWeek()

        int currentDayOfMonth = currentTime.dayOfMonth(); // [1,31]
        int currentHourOfDay = currentTime.hourOfDay(); // [0,23]

        // Java normally returns 1-7, ObjC returned 0-6, JavaFoundation will
        // return 0-6
        int currentDayOfWeek = currentTime.dayOfWeek(); // [0,6] ==
        // [Sunday,Saturday]

        String type = schedulingType();

        // KH - can we check what happens if we run overtime - NSTimestamp
View Full Code Here

Examples of java.time.temporal.WeekFields.dayOfWeek()

                        return new NumberPrinterParser(field, count, 19,
                                (count < 4) ? SignStyle.NORMAL : SignStyle.EXCEEDS_PAD, -1);
                    }
                case 'e':
                case 'c':
                    field = weekDef.dayOfWeek();
                    break;
                case 'w':
                    field = weekDef.weekOfWeekBasedYear();
                    break;
                case 'W':
View Full Code Here

Examples of javax.ejb.ScheduleExpression.dayOfWeek()

      // clone the schedule
      ScheduleExpression clonedSchedule = new ScheduleExpression();
      clonedSchedule.second(schedule.getSecond());
      clonedSchedule.minute(schedule.getMinute());
      clonedSchedule.hour(schedule.getHour());
      clonedSchedule.dayOfWeek(schedule.getDayOfWeek());
      clonedSchedule.dayOfMonth(schedule.getDayOfMonth());
      clonedSchedule.month(schedule.getMonth());
      clonedSchedule.year(schedule.getYear());
      clonedSchedule.timezone(schedule.getTimezone());
      clonedSchedule.start(schedule.getStart());
View Full Code Here

Examples of javax.ejb.ScheduleExpression.dayOfWeek()

    @Test
    public void testEveryWeekdayEightFifteen() {
        ScheduleExpression everyWeekDayThreeFifteen = this.getTimezoneSpecificScheduleExpression();
        everyWeekDayThreeFifteen.minute(15);
        everyWeekDayThreeFifteen.hour(8);
        everyWeekDayThreeFifteen.dayOfWeek("Mon-Fri");

        CalendarBasedTimeout calendarTimeout = new CalendarBasedTimeout(everyWeekDayThreeFifteen);

        Calendar firstTimeout = calendarTimeout.getFirstTimeout();
        Assert.assertNotNull("first timeout is null", firstTimeout);
View Full Code Here

Examples of javax.ejb.ScheduleExpression.dayOfWeek()

    @Test
    public void testEveryMonWedFriTwelveThirtyNoon() {
        ScheduleExpression everyMonWedFriTwelveThirtyNoon = this.getTimezoneSpecificScheduleExpression();
        everyMonWedFriTwelveThirtyNoon.hour(12);
        everyMonWedFriTwelveThirtyNoon.second("30");
        everyMonWedFriTwelveThirtyNoon.dayOfWeek("Mon,Wed,Fri");

        CalendarBasedTimeout calendarTimeout = new CalendarBasedTimeout(everyMonWedFriTwelveThirtyNoon);

        Calendar firstTimeout = calendarTimeout.getFirstTimeout();
        Assert.assertNotNull("first timeout is null", firstTimeout);
View Full Code Here

Examples of javax.ejb.ScheduleExpression.dayOfWeek()

        // clone the schedule
        ScheduleExpression clonedSchedule = new ScheduleExpression();
        clonedSchedule.second(schedule.getSecond());
        clonedSchedule.minute(schedule.getMinute());
        clonedSchedule.hour(schedule.getHour());
        clonedSchedule.dayOfWeek(schedule.getDayOfWeek());
        clonedSchedule.dayOfMonth(schedule.getDayOfMonth());
        clonedSchedule.month(schedule.getMonth());
        clonedSchedule.year(schedule.getYear());
        clonedSchedule.timezone(schedule.getTimezone());
        clonedSchedule.start(schedule.getStart());
View Full Code Here

Examples of javax.ejb.ScheduleExpression.dayOfWeek()

                    final ScheduleExpression scheduleExpression = autoTimer.getScheduleExpression();
                    final ScheduleMetaData schedule = timer.getSchedule();
                    if (schedule != null) {
                        scheduleExpression.dayOfMonth(schedule.getDayOfMonth());
                        scheduleExpression.dayOfWeek(schedule.getDayOfWeek());
                        scheduleExpression.hour(schedule.getHour());
                        scheduleExpression.minute(schedule.getMinute());
                        scheduleExpression.month(schedule.getMonth());
                        scheduleExpression.second(schedule.getSecond());
                        scheduleExpression.year(schedule.getYear());
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.