test_class.declarator: logger = LoggerFactory.getLogger(DateTimeUtilTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger logger = LoggerFactory.getLogger(DateTimeUtilTest.class);
test_class.type: Logger
test_class.var_name: logger
test_class.file: ch-commons-util/src/test/java/com/cloudhopper/commons/util/DateTimeUtilTest.java
test_class.identifier: DateTimeUtilTest
test_case.body: @Test
      public void floorToMinute() throws Exception {
          // create a reference datetime
          DateTime dt0 = new DateTime(2009,6,24,23,30,30,789,DateTimeZone.forID("America/Los_Angeles"));
  
          //
          // floor to nearest minute
          //
          DateTime dt1 = DateTimeUtil.floorToMinute(dt0);
  
          Assert.assertEquals(2009, dt1.getYear());
          Assert.assertEquals(6, dt1.getMonthOfYear());
          Assert.assertEquals(24, dt1.getDayOfMonth());
          Assert.assertEquals(23, dt1.getHourOfDay());
          Assert.assertEquals(30, dt1.getMinuteOfHour());
          Assert.assertEquals(0, dt1.getSecondOfMinute());
          Assert.assertEquals(0, dt1.getMillisOfSecond());
          Assert.assertEquals(DateTimeZone.forID("America/Los_Angeles"), dt1.getZone());
  
          //
          // floor null
          //
          DateTime dt2 = DateTimeUtil.floorToMinute(null);
          Assert.assertNull(dt2);
      }
test_case.class_method_signature: DateTimeUtilTest.floorToMinute()
test_case.full_signature: @Test public void floorToMinute()
test_case.identifier: floorToMinute
test_case.invocations: forID floorToMinute assertEquals getYear assertEquals getMonthOfYear assertEquals getDayOfMonth assertEquals getHourOfDay assertEquals getMinuteOfHour assertEquals getSecondOfMinute assertEquals getMillisOfSecond assertEquals forID getZone floorToMinute assertNull
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void floorToMinute()
focal_class.file: ch-commons-util/src/main/java/com/cloudhopper/commons/util/DateTimeUtil.java
focal_class.identifier: DateTimeUtil
focal_class.class_method_signature: DateTimeUtil.toDateTime(Timestamp value)
focal_class.full_signature: public static DateTime toDateTime(Timestamp value)
focal_class.identifier: toDateTime
focal_class.modifiers: public static
focal_class.parameters: (Timestamp value)
focal_class.return: DateTime
focal_class.signature: DateTime toDateTime(Timestamp value)
focal_class.class_method_signature: DateTimeUtil.copy(DateTime value)
focal_class.full_signature: public static DateTime copy(DateTime value)
focal_class.identifier: copy
focal_class.modifiers: public static
focal_class.parameters: (DateTime value)
focal_class.return: DateTime
focal_class.signature: DateTime copy(DateTime value)
focal_class.class_method_signature: DateTimeUtil.toTimestamp(DateTime dt)
focal_class.full_signature: public static Timestamp toTimestamp(DateTime dt)
focal_class.identifier: toTimestamp
focal_class.modifiers: public static
focal_class.parameters: (DateTime dt)
focal_class.return: Timestamp
focal_class.signature: Timestamp toTimestamp(DateTime dt)
focal_class.class_method_signature: DateTimeUtil.now()
focal_class.full_signature: public static DateTime now()
focal_class.identifier: now
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: DateTime
focal_class.signature: DateTime now()
focal_class.class_method_signature: DateTimeUtil.parseEmbedded(String string0)
focal_class.full_signature: public static DateTime parseEmbedded(String string0)
focal_class.identifier: parseEmbedded
focal_class.modifiers: public static
focal_class.parameters: (String string0)
focal_class.return: DateTime
focal_class.signature: DateTime parseEmbedded(String string0)
focal_class.class_method_signature: DateTimeUtil.parseEmbedded(String string0, String pattern, DateTimeZone zone)
focal_class.full_signature: public static DateTime parseEmbedded(String string0, String pattern, DateTimeZone zone)
focal_class.identifier: parseEmbedded
focal_class.modifiers: public static
focal_class.parameters: (String string0, String pattern, DateTimeZone zone)
focal_class.return: DateTime
focal_class.signature: DateTime parseEmbedded(String string0, String pattern, DateTimeZone zone)
focal_class.class_method_signature: DateTimeUtil.floorToYear(DateTime value)
focal_class.full_signature: public static DateTime floorToYear(DateTime value)
focal_class.identifier: floorToYear
focal_class.modifiers: public static
focal_class.parameters: (DateTime value)
focal_class.return: DateTime
focal_class.signature: DateTime floorToYear(DateTime value)
focal_class.class_method_signature: DateTimeUtil.floorToMonth(DateTime value)
focal_class.full_signature: public static DateTime floorToMonth(DateTime value)
focal_class.identifier: floorToMonth
focal_class.modifiers: public static
focal_class.parameters: (DateTime value)
focal_class.return: DateTime
focal_class.signature: DateTime floorToMonth(DateTime value)
focal_class.class_method_signature: DateTimeUtil.floorToDay(DateTime value)
focal_class.full_signature: public static DateTime floorToDay(DateTime value)
focal_class.identifier: floorToDay
focal_class.modifiers: public static
focal_class.parameters: (DateTime value)
focal_class.return: DateTime
focal_class.signature: DateTime floorToDay(DateTime value)
focal_class.class_method_signature: DateTimeUtil.floorToHour(DateTime value)
focal_class.full_signature: public static DateTime floorToHour(DateTime value)
focal_class.identifier: floorToHour
focal_class.modifiers: public static
focal_class.parameters: (DateTime value)
focal_class.return: DateTime
focal_class.signature: DateTime floorToHour(DateTime value)
focal_class.class_method_signature: DateTimeUtil.floorToHalfHour(DateTime value)
focal_class.full_signature: public static DateTime floorToHalfHour(DateTime value)
focal_class.identifier: floorToHalfHour
focal_class.modifiers: public static
focal_class.parameters: (DateTime value)
focal_class.return: DateTime
focal_class.signature: DateTime floorToHalfHour(DateTime value)
focal_class.class_method_signature: DateTimeUtil.floorToQuarterHour(DateTime value)
focal_class.full_signature: public static DateTime floorToQuarterHour(DateTime value)
focal_class.identifier: floorToQuarterHour
focal_class.modifiers: public static
focal_class.parameters: (DateTime value)
focal_class.return: DateTime
focal_class.signature: DateTime floorToQuarterHour(DateTime value)
focal_class.class_method_signature: DateTimeUtil.floorToTenMinutes(DateTime value)
focal_class.full_signature: public static DateTime floorToTenMinutes(DateTime value)
focal_class.identifier: floorToTenMinutes
focal_class.modifiers: public static
focal_class.parameters: (DateTime value)
focal_class.return: DateTime
focal_class.signature: DateTime floorToTenMinutes(DateTime value)
focal_class.class_method_signature: DateTimeUtil.floorToFiveMinutes(DateTime value)
focal_class.full_signature: public static DateTime floorToFiveMinutes(DateTime value)
focal_class.identifier: floorToFiveMinutes
focal_class.modifiers: public static
focal_class.parameters: (DateTime value)
focal_class.return: DateTime
focal_class.signature: DateTime floorToFiveMinutes(DateTime value)
focal_class.class_method_signature: DateTimeUtil.floorToMinutePeriod(DateTime value, int periodInMinutes)
focal_class.full_signature: public static DateTime floorToMinutePeriod(DateTime value, int periodInMinutes)
focal_class.identifier: floorToMinutePeriod
focal_class.modifiers: public static
focal_class.parameters: (DateTime value, int periodInMinutes)
focal_class.return: DateTime
focal_class.signature: DateTime floorToMinutePeriod(DateTime value, int periodInMinutes)
focal_class.class_method_signature: DateTimeUtil.floorToMinute(DateTime value)
focal_class.full_signature: public static DateTime floorToMinute(DateTime value)
focal_class.identifier: floorToMinute
focal_class.modifiers: public static
focal_class.parameters: (DateTime value)
focal_class.return: DateTime
focal_class.signature: DateTime floorToMinute(DateTime value)
focal_class.class_method_signature: DateTimeUtil.floorToSecond(DateTime value)
focal_class.full_signature: public static DateTime floorToSecond(DateTime value)
focal_class.identifier: floorToSecond
focal_class.modifiers: public static
focal_class.parameters: (DateTime value)
focal_class.return: DateTime
focal_class.signature: DateTime floorToSecond(DateTime value)
focal_method.body: public static DateTime floorToMinute(DateTime value) {
          if (value == null) {
              return null;
          }
          return new DateTime(value.getYear(), value.getMonthOfYear(), value.getDayOfMonth(), value.getHourOfDay(), value.getMinuteOfHour(), 0, 0, value.getZone());
      }
focal_method.class_method_signature: DateTimeUtil.floorToMinute(DateTime value)
focal_method.full_signature: public static DateTime floorToMinute(DateTime value)
focal_method.identifier: floorToMinute
focal_method.invocations: getYear getMonthOfYear getDayOfMonth getHourOfDay getMinuteOfHour getZone
focal_method.modifiers: public static
focal_method.parameters: (DateTime value)
focal_method.return: DateTime
focal_method.signature: DateTime floorToMinute(DateTime value)