Examples of lengthInDays()


Examples of javax.time.calendar.MonthOfYear.lengthInDays()

        public int getMaximumValue(Calendrical calendrical) {
            Integer year = calendrical.get(chrono.yearRule());
            MonthOfYear moy = calendrical.get(chrono.monthOfYearRule());
            if (moy != null) {
                if (year != null) {
                    return moy.lengthInDays(chrono.isLeapYear(year));
                } else {
                    return moy.maxLengthInDays();
                }
            }
            return getMaximumValue();
View Full Code Here

Examples of javax.time.calendar.field.MonthOfYear.lengthInDays()

        public int getMaximumValue(Calendrical calendrical) {
            Integer year = calendrical.deriveValueQuiet(yearRule());
            Integer moy = calendrical.deriveValueQuiet(monthOfYearRule());
            if (year != null && moy != null) {
                MonthOfYear month = MonthOfYear.monthOfYear(moy);
                return month.lengthInDays(year);
            }
            return getMaximumValue();
        }
        @Override
        public Integer getValueQuiet(LocalDate date, LocalTime time) {
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.