test_class.file: herd-code/herd-core/src/test/java/org/finra/herd/core/HerdDateUtilsTest.java
test_class.identifier: HerdDateUtilsTest
test_class.superclass: extends AbstractCoreTest
test_case.body: @Test
      public void testAddDays()
      {
          Timestamp testTimestamp = Timestamp.valueOf("2015-12-21 10:34:11");
          int daysDiff = 99;
  
          assertEquals(Timestamp.valueOf("2016-03-29 10:34:11"), HerdDateUtils.addDays(testTimestamp, daysDiff));
          assertEquals(testTimestamp, HerdDateUtils.addDays(testTimestamp, 0));
          assertEquals(Timestamp.valueOf("2015-09-13 10:34:11"), HerdDateUtils.addDays(testTimestamp, -daysDiff));
      }
test_case.class_method_signature: HerdDateUtilsTest.testAddDays()
test_case.full_signature: @Test public void testAddDays()
test_case.identifier: testAddDays
test_case.invocations: valueOf assertEquals valueOf addDays assertEquals addDays assertEquals valueOf addDays
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAddDays()
focal_class.file: herd-code/herd-core/src/main/java/org/finra/herd/core/HerdDateUtils.java
focal_class.identifier: HerdDateUtils
focal_class.class_method_signature: HerdDateUtils.getCurrentCalendarNoTime()
focal_class.full_signature: public static Calendar getCurrentCalendarNoTime()
focal_class.identifier: getCurrentCalendarNoTime
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: Calendar
focal_class.signature: Calendar getCurrentCalendarNoTime()
focal_class.class_method_signature: HerdDateUtils.formatDuration(long duration)
focal_class.full_signature: public static String formatDuration(long duration)
focal_class.identifier: formatDuration
focal_class.modifiers: public static
focal_class.parameters: (long duration)
focal_class.return: String
focal_class.signature: String formatDuration(long duration)
focal_class.class_method_signature: HerdDateUtils.processDuration(long remainingDuration, long millisPerDuration, String durationName, StringBuilder result, boolean displayZeroDuration)
focal_class.full_signature: private static long processDuration(long remainingDuration, long millisPerDuration, String durationName, StringBuilder result, boolean displayZeroDuration)
focal_class.identifier: processDuration
focal_class.modifiers: private static
focal_class.parameters: (long remainingDuration, long millisPerDuration, String durationName, StringBuilder result, boolean displayZeroDuration)
focal_class.return: long
focal_class.signature: long processDuration(long remainingDuration, long millisPerDuration, String durationName, StringBuilder result, boolean displayZeroDuration)
focal_class.class_method_signature: HerdDateUtils.now()
focal_class.full_signature: public static XMLGregorianCalendar now()
focal_class.identifier: now
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: XMLGregorianCalendar
focal_class.signature: XMLGregorianCalendar now()
focal_class.class_method_signature: HerdDateUtils.getXMLGregorianCalendarValue(Date date)
focal_class.full_signature: public static XMLGregorianCalendar getXMLGregorianCalendarValue(Date date)
focal_class.identifier: getXMLGregorianCalendarValue
focal_class.modifiers: public static
focal_class.parameters: (Date date)
focal_class.return: XMLGregorianCalendar
focal_class.signature: XMLGregorianCalendar getXMLGregorianCalendarValue(Date date)
focal_class.class_method_signature: HerdDateUtils.addDays(Timestamp timestamp, int amount)
focal_class.full_signature: public static Timestamp addDays(Timestamp timestamp, int amount)
focal_class.identifier: addDays
focal_class.modifiers: public static
focal_class.parameters: (Timestamp timestamp, int amount)
focal_class.return: Timestamp
focal_class.signature: Timestamp addDays(Timestamp timestamp, int amount)
focal_class.class_method_signature: HerdDateUtils.addMinutes(Timestamp timestamp, int amount)
focal_class.full_signature: public static Timestamp addMinutes(Timestamp timestamp, int amount)
focal_class.identifier: addMinutes
focal_class.modifiers: public static
focal_class.parameters: (Timestamp timestamp, int amount)
focal_class.return: Timestamp
focal_class.signature: Timestamp addMinutes(Timestamp timestamp, int amount)
focal_class.class_method_signature: HerdDateUtils.resetTimeToMidnight(XMLGregorianCalendar xmlGregorianCalendar)
focal_class.full_signature: public static Timestamp resetTimeToMidnight(XMLGregorianCalendar xmlGregorianCalendar)
focal_class.identifier: resetTimeToMidnight
focal_class.modifiers: public static
focal_class.parameters: (XMLGregorianCalendar xmlGregorianCalendar)
focal_class.return: Timestamp
focal_class.signature: Timestamp resetTimeToMidnight(XMLGregorianCalendar xmlGregorianCalendar)
focal_class.class_method_signature: HerdDateUtils.convertToTimestamp(XMLGregorianCalendar xmlGregorianCalendar)
focal_class.full_signature: public static Timestamp convertToTimestamp(XMLGregorianCalendar xmlGregorianCalendar)
focal_class.identifier: convertToTimestamp
focal_class.modifiers: public static
focal_class.parameters: (XMLGregorianCalendar xmlGregorianCalendar)
focal_class.return: Timestamp
focal_class.signature: Timestamp convertToTimestamp(XMLGregorianCalendar xmlGregorianCalendar)
focal_class.class_method_signature: HerdDateUtils.containsTimePortion(XMLGregorianCalendar xmlGregorianCalendar)
focal_class.full_signature: public static Boolean containsTimePortion(XMLGregorianCalendar xmlGregorianCalendar)
focal_class.identifier: containsTimePortion
focal_class.modifiers: public static
focal_class.parameters: (XMLGregorianCalendar xmlGregorianCalendar)
focal_class.return: Boolean
focal_class.signature: Boolean containsTimePortion(XMLGregorianCalendar xmlGregorianCalendar)
focal_class.superclass: extends DateUtils
focal_method.body: public static Timestamp addDays(Timestamp timestamp, int amount)
      {
          Calendar calendar = Calendar.getInstance();
          calendar.setTimeInMillis(timestamp.getTime());
          return new Timestamp(addDays(calendar.getTime(), amount).getTime());
      }
focal_method.class_method_signature: HerdDateUtils.addDays(Timestamp timestamp, int amount)
focal_method.full_signature: public static Timestamp addDays(Timestamp timestamp, int amount)
focal_method.identifier: addDays
focal_method.invocations: getInstance setTimeInMillis getTime getTime addDays getTime
focal_method.modifiers: public static
focal_method.parameters: (Timestamp timestamp, int amount)
focal_method.return: Timestamp
focal_method.signature: Timestamp addDays(Timestamp timestamp, int amount)