Examples of dayOfWeek()


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

        spreadsheet.setHeader(BundleUtil.getString(Bundle.APPLICATION, "label.description"));
        spreadsheet.setHeader(BundleUtil.getString(Bundle.APPLICATION, "label.classification"));
        final DateTime now = new DateTime();
        for (int weekDay = 0; weekDay < 6; weekDay++) {
            final DateTime dateTime = now.withDayOfWeek(weekDay + 1);
            final String weekDayString = dateTime.dayOfWeek().getAsText(I18N.getLocale());
            for (int hour = 0; hour < 16; hour++) {
                spreadsheet.setHeader(weekDayString + " " + (hour + 8) + ":00");
                spreadsheet.setHeader(weekDayString + " " + (hour + 8) + ":30");
            }
        }
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.