Package org.joda.time

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


        // day
        startDate = new DateTime().hourOfDay().withMinimumValue();
        endDate = new DateTime().hourOfDay().withMaximumValue().minusHours(1);
        start = td.newActivity(startDate, startDate.plusHours(1));
        end = td.newActivity(endDate, endDate.plusHours(1));
        internalGetStartEnd(td.day(), start, end);
    }


    void internalGetStartEnd(Activities cut, Activity start, Activity end)
View Full Code Here


        DateTime start = new MutableDateTime().dayOfMonth().set(1).hourOfDay().set(8).toDateTime();
        for (int i = 0; i < numberOfActivities; i++)
        {
            DateTime end = start.plusHours(1);
            activities.add(newActivity(start, end));
            start = end.plusHours(1);
        }
        return activities;
    }

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.