Package org.jfree.data.time

Examples of org.jfree.data.time.Quarter.previous()


        public static Calendar[] getLastQuarter(Calendar referenceCalendar) {
            Quarter quarter = new Quarter(referenceCalendar.getTime());
            Calendar startCal = getInstance();
            Calendar endCal = getInstance();
            long start = quarter.previous().getFirstMillisecond(getInstance());
            long end = quarter.previous().getLastMillisecond(getInstance());
            startCal.setTimeInMillis(start);
            endCal.setTimeInMillis(end);
            return new Calendar[] {startCal, endCal};
        }
View Full Code Here


        public static Calendar[] getLastQuarter(Calendar referenceCalendar) {
            Quarter quarter = new Quarter(referenceCalendar.getTime());
            Calendar startCal = getInstance();
            Calendar endCal = getInstance();
            long start = quarter.previous().getFirstMillisecond(getInstance());
            long end = quarter.previous().getLastMillisecond(getInstance());
            startCal.setTimeInMillis(start);
            endCal.setTimeInMillis(end);
            return new Calendar[] {startCal, endCal};
        }
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.