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 getDatePickerDetailsTest() {
          assertEquals(gregorian, DateTimeUtils.getDatePickerDetails(null));
          String appearance = "something";
          assertEquals(gregorian, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "no-calendar";
          assertEquals(gregorianSpinners, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "NO-CALENDAR";
          assertEquals(gregorianSpinners, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "month-year";
          assertEquals(gregorianMonthYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "MONTH-year";
          assertEquals(gregorianMonthYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "year";
          assertEquals(gregorianYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "Year";
          assertEquals(gregorianYear, DateTimeUtils.getDatePickerDetails(appearance));
  
          appearance = "ethiopian";
          assertEquals(ethiopian, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "Ethiopian month-year";
          assertEquals(ethiopianMonthYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "month-year ethiopian";
          assertEquals(ethiopianMonthYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "Ethiopian year";
          assertEquals(ethiopianYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "year ethiopian";
          assertEquals(ethiopianYear, DateTimeUtils.getDatePickerDetails(appearance));
  
          appearance = "coptic";
          assertEquals(coptic, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "Coptic month-year";
          assertEquals(copticMonthYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "month-year coptic";
          assertEquals(copticMonthYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "Coptic year";
          assertEquals(copticYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "year coptic";
          assertEquals(copticYear, DateTimeUtils.getDatePickerDetails(appearance));
  
          appearance = "islamic";
          assertEquals(islamic, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "Islamic month-year";
          assertEquals(islamicMonthYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "month-year islamic";
          assertEquals(islamicMonthYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "Islamic year";
          assertEquals(islamicYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "year islamic";
          assertEquals(islamicYear, DateTimeUtils.getDatePickerDetails(appearance));
  
          appearance = "bikram-sambat";
          assertEquals(bikramSambat, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "Bikram-sambat month-year";
          assertEquals(bikramSambatMonthYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "month-year bikram-sambat";
          assertEquals(bikramSambatMonthYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "Bikram-sambat year";
          assertEquals(bikramSambatYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "year bikram-sambat";
          assertEquals(bikramSambatYear, DateTimeUtils.getDatePickerDetails(appearance));
  
          appearance = "myanmar";
          assertEquals(myanmar, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "Myanmar month-year";
          assertEquals(myanmarMonthYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "month-year myanmar";
          assertEquals(myanmarMonthYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "Myanmar year";
          assertEquals(myanmarYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "year myanmar";
          assertEquals(myanmarYear, DateTimeUtils.getDatePickerDetails(appearance));
  
          appearance = "persian";
          assertEquals(persian, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "Persian month-year";
          assertEquals(persianMonthYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "month-year persian";
          assertEquals(persianMonthYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "Persian year";
          assertEquals(persianYear, DateTimeUtils.getDatePickerDetails(appearance));
          appearance = "year persian";
          assertEquals(persianYear, DateTimeUtils.getDatePickerDetails(appearance));
      }
test_case.class_method_signature: DateTimeUtilsTest.getDatePickerDetailsTest()
test_case.full_signature: @Test public void getDatePickerDetailsTest()
test_case.identifier: getDatePickerDetailsTest
test_case.invocations: assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails assertEquals getDatePickerDetails
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getDatePickerDetailsTest()
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 DatePickerDetails getDatePickerDetails(String appearance) {
          DatePickerDetails.DatePickerType datePickerType = DatePickerDetails.DatePickerType.GREGORIAN;
          DatePickerDetails.DatePickerMode datePickerMode = DatePickerDetails.DatePickerMode.CALENDAR;
          if (appearance != null) {
              appearance = appearance.toLowerCase(Locale.US);
              if (appearance.contains(WidgetAppearanceUtils.ETHIOPIAN)) {
                  datePickerType = DatePickerDetails.DatePickerType.ETHIOPIAN;
                  datePickerMode = DatePickerDetails.DatePickerMode.SPINNERS;
              } else if (appearance.contains(WidgetAppearanceUtils.COPTIC)) {
                  datePickerType = DatePickerDetails.DatePickerType.COPTIC;
                  datePickerMode = DatePickerDetails.DatePickerMode.SPINNERS;
              } else if (appearance.contains(WidgetAppearanceUtils.ISLAMIC)) {
                  datePickerType = DatePickerDetails.DatePickerType.ISLAMIC;
                  datePickerMode = DatePickerDetails.DatePickerMode.SPINNERS;
              } else if (appearance.contains(WidgetAppearanceUtils.BIKRAM_SAMBAT)) {
                  datePickerType = DatePickerDetails.DatePickerType.BIKRAM_SAMBAT;
                  datePickerMode = DatePickerDetails.DatePickerMode.SPINNERS;
              } else if (appearance.contains(WidgetAppearanceUtils.MYANMAR)) {
                  datePickerType = DatePickerDetails.DatePickerType.MYANMAR;
                  datePickerMode = DatePickerDetails.DatePickerMode.SPINNERS;
              } else if (appearance.contains(WidgetAppearanceUtils.PERSIAN)) {
                  datePickerType = DatePickerDetails.DatePickerType.PERSIAN;
                  datePickerMode = DatePickerDetails.DatePickerMode.SPINNERS;
              } else if (appearance.contains(WidgetAppearanceUtils.NO_CALENDAR)) {
                  datePickerMode = DatePickerDetails.DatePickerMode.SPINNERS;
              }
  
              if (appearance.contains(WidgetAppearanceUtils.MONTH_YEAR)) {
                  datePickerMode = DatePickerDetails.DatePickerMode.MONTH_YEAR;
              } else if (appearance.contains(WidgetAppearanceUtils.YEAR)) {
                  datePickerMode = DatePickerDetails.DatePickerMode.YEAR;
              }
          }
  
          return new DatePickerDetails(datePickerType, datePickerMode);
      }
focal_method.class_method_signature: DateTimeUtils.getDatePickerDetails(String appearance)
focal_method.full_signature: public static DatePickerDetails getDatePickerDetails(String appearance)
focal_method.identifier: getDatePickerDetails
focal_method.invocations: toLowerCase contains contains contains contains contains contains contains contains contains
focal_method.modifiers: public static
focal_method.parameters: (String appearance)
focal_method.return: DatePickerDetails
focal_method.signature: DatePickerDetails getDatePickerDetails(String appearance)