test_class.declarator: gregorian
test_class.modifier: private
test_class.original_string: private DatePickerDetails gregorian;
test_class.type: DatePickerDetails
test_class.var_name: gregorian
test_class.declarator: gregorianSpinners
test_class.modifier: private
test_class.original_string: private DatePickerDetails gregorianSpinners;
test_class.type: DatePickerDetails
test_class.var_name: gregorianSpinners
test_class.declarator: gregorianMonthYear
test_class.modifier: private
test_class.original_string: private DatePickerDetails gregorianMonthYear;
test_class.type: DatePickerDetails
test_class.var_name: gregorianMonthYear
test_class.declarator: gregorianYear
test_class.modifier: private
test_class.original_string: private DatePickerDetails gregorianYear;
test_class.type: DatePickerDetails
test_class.var_name: gregorianYear
test_class.declarator: ethiopian
test_class.modifier: private
test_class.original_string: private DatePickerDetails ethiopian;
test_class.type: DatePickerDetails
test_class.var_name: ethiopian
test_class.declarator: ethiopianMonthYear
test_class.modifier: private
test_class.original_string: private DatePickerDetails ethiopianMonthYear;
test_class.type: DatePickerDetails
test_class.var_name: ethiopianMonthYear
test_class.declarator: ethiopianYear
test_class.modifier: private
test_class.original_string: private DatePickerDetails ethiopianYear;
test_class.type: DatePickerDetails
test_class.var_name: ethiopianYear
test_class.declarator: coptic
test_class.modifier: private
test_class.original_string: private DatePickerDetails coptic;
test_class.type: DatePickerDetails
test_class.var_name: coptic
test_class.declarator: copticMonthYear
test_class.modifier: private
test_class.original_string: private DatePickerDetails copticMonthYear;
test_class.type: DatePickerDetails
test_class.var_name: copticMonthYear
test_class.declarator: copticYear
test_class.modifier: private
test_class.original_string: private DatePickerDetails copticYear;
test_class.type: DatePickerDetails
test_class.var_name: copticYear
test_class.declarator: islamic
test_class.modifier: private
test_class.original_string: private DatePickerDetails islamic;
test_class.type: DatePickerDetails
test_class.var_name: islamic
test_class.declarator: islamicMonthYear
test_class.modifier: private
test_class.original_string: private DatePickerDetails islamicMonthYear;
test_class.type: DatePickerDetails
test_class.var_name: islamicMonthYear
test_class.declarator: islamicYear
test_class.modifier: private
test_class.original_string: private DatePickerDetails islamicYear;
test_class.type: DatePickerDetails
test_class.var_name: islamicYear
test_class.declarator: bikramSambat
test_class.modifier: private
test_class.original_string: private DatePickerDetails bikramSambat;
test_class.type: DatePickerDetails
test_class.var_name: bikramSambat
test_class.declarator: bikramSambatMonthYear
test_class.modifier: private
test_class.original_string: private DatePickerDetails bikramSambatMonthYear;
test_class.type: DatePickerDetails
test_class.var_name: bikramSambatMonthYear
test_class.declarator: bikramSambatYear
test_class.modifier: private
test_class.original_string: private DatePickerDetails bikramSambatYear;
test_class.type: DatePickerDetails
test_class.var_name: bikramSambatYear
test_class.declarator: myanmar
test_class.modifier: private
test_class.original_string: private DatePickerDetails myanmar;
test_class.type: DatePickerDetails
test_class.var_name: myanmar
test_class.declarator: myanmarMonthYear
test_class.modifier: private
test_class.original_string: private DatePickerDetails myanmarMonthYear;
test_class.type: DatePickerDetails
test_class.var_name: myanmarMonthYear
test_class.declarator: myanmarYear
test_class.modifier: private
test_class.original_string: private DatePickerDetails myanmarYear;
test_class.type: DatePickerDetails
test_class.var_name: myanmarYear
test_class.declarator: persian
test_class.modifier: private
test_class.original_string: private DatePickerDetails persian;
test_class.type: DatePickerDetails
test_class.var_name: persian
test_class.declarator: persianMonthYear
test_class.modifier: private
test_class.original_string: private DatePickerDetails persianMonthYear;
test_class.type: DatePickerDetails
test_class.var_name: persianMonthYear
test_class.declarator: persianYear
test_class.modifier: private
test_class.original_string: private DatePickerDetails persianYear;
test_class.type: DatePickerDetails
test_class.var_name: persianYear
test_class.file: collect_app/src/test/java/org/odk/collect/android/utilities/DateTimeUtilsTest.java
test_class.identifier: DateTimeUtilsTest
test_case.body: @Test
      public void skipDaylightSavingGapIfExistsTest() {
          DateTimeZone originalDefaultTimeZone = DateTimeZone.getDefault();
          DateTimeZone.setDefault(DateTimeZone.forTimeZone(TimeZone.getTimeZone("Africa/Nairobi")));
  
          // 1 Jan 1960 at 00:00:00 clocks were turned forward to 00:15:00
          LocalDateTime ldtOriginal = new LocalDateTime().withYear(1960).withMonthOfYear(1).withDayOfMonth(1).withHourOfDay(0).withMinuteOfHour(0).withSecondOfMinute(0).withMillisOfSecond(0);
          LocalDateTime ldtExpected = new LocalDateTime().withYear(1960).withMonthOfYear(1).withDayOfMonth(1).withHourOfDay(0).withMinuteOfHour(15).withSecondOfMinute(0).withMillisOfSecond(0);
  
          assertEquals(ldtExpected, DateTimeUtils.skipDaylightSavingGapIfExists(ldtOriginal));
          DateTimeZone.setDefault(originalDefaultTimeZone);
      }
test_case.class_method_signature: DateTimeUtilsTest.skipDaylightSavingGapIfExistsTest()
test_case.full_signature: @Test public void skipDaylightSavingGapIfExistsTest()
test_case.identifier: skipDaylightSavingGapIfExistsTest
test_case.invocations: getDefault setDefault forTimeZone getTimeZone withMillisOfSecond withSecondOfMinute withMinuteOfHour withHourOfDay withDayOfMonth withMonthOfYear withYear withMillisOfSecond withSecondOfMinute withMinuteOfHour withHourOfDay withDayOfMonth withMonthOfYear withYear assertEquals skipDaylightSavingGapIfExists setDefault
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void skipDaylightSavingGapIfExistsTest()
focal_class.declarator: SERVER_DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
focal_class.modifier: private static final
focal_class.original_string: private static final String SERVER_DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";
focal_class.type: String
focal_class.var_name: SERVER_DATE_FORMAT
focal_class.file: collect_app/src/main/java/org/odk/collect/android/utilities/DateTimeUtils.java
focal_class.identifier: DateTimeUtils
focal_class.class_method_signature: DateTimeUtils.DateTimeUtils()
focal_class.full_signature: private  DateTimeUtils()
focal_class.identifier: DateTimeUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  DateTimeUtils()
focal_class.class_method_signature: DateTimeUtils.getGregorianDateTimeLabel(Date date, DatePickerDetails datePickerDetails, boolean containsTime, Locale locale)
focal_class.full_signature: private static String getGregorianDateTimeLabel(Date date, DatePickerDetails datePickerDetails, boolean containsTime, Locale locale)
focal_class.identifier: getGregorianDateTimeLabel
focal_class.modifiers: private static
focal_class.parameters: (Date date, DatePickerDetails datePickerDetails, boolean containsTime, Locale locale)
focal_class.return: String
focal_class.signature: String getGregorianDateTimeLabel(Date date, DatePickerDetails datePickerDetails, boolean containsTime, Locale locale)
focal_class.class_method_signature: DateTimeUtils.getDateTimeLabel(Date date, DatePickerDetails datePickerDetails, boolean containsTime, Context context)
focal_class.full_signature: public static String getDateTimeLabel(Date date, DatePickerDetails datePickerDetails, boolean containsTime, Context context)
focal_class.identifier: getDateTimeLabel
focal_class.modifiers: public static
focal_class.parameters: (Date date, DatePickerDetails datePickerDetails, boolean containsTime, Context context)
focal_class.return: String
focal_class.signature: String getDateTimeLabel(Date date, DatePickerDetails datePickerDetails, boolean containsTime, Context context)
focal_class.class_method_signature: DateTimeUtils.getDateTimeSkeleton(boolean containsTime, DatePickerDetails datePickerDetails)
focal_class.full_signature: private static String getDateTimeSkeleton(boolean containsTime, DatePickerDetails datePickerDetails)
focal_class.identifier: getDateTimeSkeleton
focal_class.modifiers: private static
focal_class.parameters: (boolean containsTime, DatePickerDetails datePickerDetails)
focal_class.return: String
focal_class.signature: String getDateTimeSkeleton(boolean containsTime, DatePickerDetails datePickerDetails)
focal_class.class_method_signature: DateTimeUtils.skipDaylightSavingGapIfExists(LocalDateTime date)
focal_class.full_signature: public static LocalDateTime skipDaylightSavingGapIfExists(LocalDateTime date)
focal_class.identifier: skipDaylightSavingGapIfExists
focal_class.modifiers: public static
focal_class.parameters: (LocalDateTime date)
focal_class.return: LocalDateTime
focal_class.signature: LocalDateTime skipDaylightSavingGapIfExists(LocalDateTime date)
focal_class.class_method_signature: DateTimeUtils.getDatePickerDetails(String appearance)
focal_class.full_signature: public static DatePickerDetails getDatePickerDetails(String appearance)
focal_class.identifier: getDatePickerDetails
focal_class.modifiers: public static
focal_class.parameters: (String appearance)
focal_class.return: DatePickerDetails
focal_class.signature: DatePickerDetails getDatePickerDetails(String appearance)
focal_class.class_method_signature: DateTimeUtils.tsToSec8601(String timestamp)
focal_class.full_signature: public static long tsToSec8601(String timestamp)
focal_class.identifier: tsToSec8601
focal_class.modifiers: public static
focal_class.parameters: (String timestamp)
focal_class.return: long
focal_class.signature: long tsToSec8601(String timestamp)
focal_class.class_method_signature: DateTimeUtils.formatDateFromServer(String time)
focal_class.full_signature: public static String formatDateFromServer(String time)
focal_class.identifier: formatDateFromServer
focal_class.modifiers: public static
focal_class.parameters: (String time)
focal_class.return: String
focal_class.signature: String formatDateFromServer(String time)
focal_class.class_method_signature: DateTimeUtils.getRelativeTime(String dateTime, Boolean dateTimeFromServer)
focal_class.full_signature: public static String getRelativeTime(String dateTime, Boolean dateTimeFromServer)
focal_class.identifier: getRelativeTime
focal_class.modifiers: public static
focal_class.parameters: (String dateTime, Boolean dateTimeFromServer)
focal_class.return: String
focal_class.signature: String getRelativeTime(String dateTime, Boolean dateTimeFromServer)
focal_class.class_method_signature: DateTimeUtils.getFormattedDate(String format, long time)
focal_class.full_signature: public static String getFormattedDate(String format, long time)
focal_class.identifier: getFormattedDate
focal_class.modifiers: public static
focal_class.parameters: (String format, long time)
focal_class.return: String
focal_class.signature: String getFormattedDate(String format, long time)
focal_method.body: public static LocalDateTime skipDaylightSavingGapIfExists(LocalDateTime date) {
          final DateTimeZone dtz = DateTimeZone.getDefault();
  
          if (dtz != null) {
              while (dtz.isLocalDateTimeGap(date)) {
                  date = date.plusMinutes(1);
              }
          }
          return date;
      }
focal_method.class_method_signature: DateTimeUtils.skipDaylightSavingGapIfExists(LocalDateTime date)
focal_method.full_signature: public static LocalDateTime skipDaylightSavingGapIfExists(LocalDateTime date)
focal_method.identifier: skipDaylightSavingGapIfExists
focal_method.invocations: getDefault isLocalDateTimeGap plusMinutes
focal_method.modifiers: public static
focal_method.parameters: (LocalDateTime date)
focal_method.return: LocalDateTime
focal_method.signature: LocalDateTime skipDaylightSavingGapIfExists(LocalDateTime date)