Package org.joda.time

Examples of org.joda.time.DateTime.dayOfWeek()


        long seconds = getSeconds(dateTime);

        assertFunction("second(" + seconds + ")", dateTime.getSecondOfMinute());
        assertFunction("minute(" + seconds + ")", dateTime.getMinuteOfHour());
        assertFunction("hour(" + seconds + ")", dateTime.getHourOfDay());
        assertFunction("day_of_week(" + seconds + ")", dateTime.dayOfWeek().get());
        assertFunction("dow(" + seconds + ")", dateTime.dayOfWeek().get());
        assertFunction("day(" + seconds + ")", dateTime.getDayOfMonth());
        assertFunction("day_of_month(" + seconds + ")", dateTime.getDayOfMonth());
        assertFunction("day_of_year(" + seconds + ")", dateTime.dayOfYear().get());
        assertFunction("doy(" + seconds + ")", dateTime.dayOfYear().get());
View Full Code Here


        assertFunction("second(" + seconds + ")", dateTime.getSecondOfMinute());
        assertFunction("minute(" + seconds + ")", dateTime.getMinuteOfHour());
        assertFunction("hour(" + seconds + ")", dateTime.getHourOfDay());
        assertFunction("day_of_week(" + seconds + ")", dateTime.dayOfWeek().get());
        assertFunction("dow(" + seconds + ")", dateTime.dayOfWeek().get());
        assertFunction("day(" + seconds + ")", dateTime.getDayOfMonth());
        assertFunction("day_of_month(" + seconds + ")", dateTime.getDayOfMonth());
        assertFunction("day_of_year(" + seconds + ")", dateTime.dayOfYear().get());
        assertFunction("doy(" + seconds + ")", dateTime.dayOfYear().get());
        assertFunction("week(" + seconds + ")", dateTime.weekOfWeekyear().get());
View Full Code Here

            DateTime weekStart = monthDateTime.withDayOfWeek(1);
            int index;
            if (!weekStart.isAfter(config.startDate))
                index = 0;
            else
                index = Weeks.weeksBetween(config.startDate, weekStart).getWeeks() + (config.startDate.dayOfWeek() == weekStart.dayOfWeek() ? 0 : 1);
            weeklyData.setData(weekly, index, true);
            writer.archive();
        }
    }
View Full Code Here

        long seconds = getSeconds(dateTime);

        assertFunction("second(" + seconds + ")", dateTime.getSecondOfMinute());
        assertFunction("minute(" + seconds + ")", dateTime.getMinuteOfHour());
        assertFunction("hour(" + seconds + ")", dateTime.getHourOfDay());
        assertFunction("day_of_week(" + seconds + ")", dateTime.dayOfWeek().get());
        assertFunction("dow(" + seconds + ")", dateTime.dayOfWeek().get());
        assertFunction("day(" + seconds + ")", dateTime.getDayOfMonth());
        assertFunction("day_of_month(" + seconds + ")", dateTime.getDayOfMonth());
        assertFunction("day_of_year(" + seconds + ")", dateTime.dayOfYear().get());
        assertFunction("doy(" + seconds + ")", dateTime.dayOfYear().get());
View Full Code Here

        assertFunction("second(" + seconds + ")", dateTime.getSecondOfMinute());
        assertFunction("minute(" + seconds + ")", dateTime.getMinuteOfHour());
        assertFunction("hour(" + seconds + ")", dateTime.getHourOfDay());
        assertFunction("day_of_week(" + seconds + ")", dateTime.dayOfWeek().get());
        assertFunction("dow(" + seconds + ")", dateTime.dayOfWeek().get());
        assertFunction("day(" + seconds + ")", dateTime.getDayOfMonth());
        assertFunction("day_of_month(" + seconds + ")", dateTime.getDayOfMonth());
        assertFunction("day_of_year(" + seconds + ")", dateTime.dayOfYear().get());
        assertFunction("doy(" + seconds + ")", dateTime.dayOfYear().get());
        assertFunction("week(" + seconds + ")", dateTime.weekOfWeekyear().get());
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.