예제 #1
0
 private ReadableDateTime toUTCTimeZone(final ReadableDateTime dateTime) {
   if (DateTimeZone.UTC.equals(dateTime.getZone())) {
     return dateTime;
   }
   final MutableDateTime dateInUTC = dateTime.toMutableDateTime();
   dateInUTC.setZone(DateTimeZone.UTC);
   return dateInUTC.toDateTime();
 }
 private long[] getMinCountsForHour(String name, ReadableDateTime dateTime) {
   return getMinCountsForHour(
       name,
       dateTime.getYear(),
       dateTime.getMonthOfYear(),
       dateTime.getDayOfMonth(),
       dateTime.getHourOfDay());
 }