List of usage examples for org.joda.time.base AbstractDateTime getHourOfDay
public int getHourOfDay()
From source file:com.foundationdb.server.types.mcompat.mtypes.MDateAndTime.java
License:Open Source License
public static long[] fromJodaDateTime(AbstractDateTime date) { return new long[] { date.getYear(), date.getMonthOfYear(), date.getDayOfMonth(), date.getHourOfDay(), date.getMinuteOfHour(), date.getSecondOfMinute() }; }
From source file:org.powertac.common.Rate.java
License:Apache License
/** * Sets the time of day when this Rate comes into effect. *//*w ww . ja v a 2 s. c o m*/ public Rate withDailyBegin(AbstractDateTime begin) { if (null == begin) { log.error("Null value for dailyBegin"); dailyBegin = NO_TIME; return null; } return withDailyBegin(begin.getHourOfDay()); }
From source file:org.powertac.common.Rate.java
License:Apache License
/** * Sets the time of day when this Rate is no longer in effect. *//*ww w. j a v a 2 s . c om*/ public Rate withDailyEnd(AbstractDateTime end) { if (null == end) { log.error("Null value for dailyEnd"); dailyEnd = NO_TIME; return null; } return withDailyEnd(end.getHourOfDay()); }