test_class.declarator: localCalendar = Calendar.getInstance()
test_class.modifier: private final
test_class.original_string: private final Calendar localCalendar = Calendar.getInstance();
test_class.type: Calendar
test_class.var_name: localCalendar
test_class.declarator: calendar
test_class.modifier: private final
test_class.original_string: private final Calendar calendar;
test_class.type: Calendar
test_class.var_name: calendar
test_class.file: aw-reporting-model/src/test/java/com/google/api/ads/adwords/awreporting/model/util/DateUtilTest.java
test_class.identifier: DateUtilTest
test_case.body: @Test
    public void testParseYearMonthDay() {
      String toParse = "2010-02-22";
      LocalDate localDate = DateUtil.parseLocalDate(toParse);
      assertNotNull("Error parsing yyyy-MM-dd", localDate);
  
      assertEquals(2010, localDate.getYear());
      assertEquals(2, localDate.getMonthOfYear());
      assertEquals(22, localDate.getDayOfMonth());
  
      assertNull("Error parsing yyyy-MM-dd", DateUtil.parseLocalDate("invalid date"));
    }
test_case.class_method_signature: DateUtilTest.testParseYearMonthDay()
test_case.full_signature: @Test public void testParseYearMonthDay()
test_case.identifier: testParseYearMonthDay
test_case.invocations: parseLocalDate assertNotNull assertEquals getYear assertEquals getMonthOfYear assertEquals getDayOfMonth assertNull parseLocalDate
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testParseYearMonthDay()
focal_class.declarator: DATE_FORMAT_REPORT = "yyyyMMdd"
focal_class.modifier: protected static final
focal_class.original_string: protected static final String DATE_FORMAT_REPORT = "yyyyMMdd";
focal_class.type: String
focal_class.var_name: DATE_FORMAT_REPORT
focal_class.declarator: DATE_FORMATTER_YEAR_MONTH_DAY_NO_DASH =
        DateTimeFormat.forPattern(DATE_FORMAT_REPORT)
focal_class.modifier: private static final
focal_class.original_string: private static final DateTimeFormatter DATE_FORMATTER_YEAR_MONTH_DAY_NO_DASH =
        DateTimeFormat.forPattern(DATE_FORMAT_REPORT);
focal_class.type: DateTimeFormatter
focal_class.var_name: DATE_FORMATTER_YEAR_MONTH_DAY_NO_DASH
focal_class.declarator: DATE_FORMAT_SHORT = "yyyy-MM-dd"
focal_class.modifier: private static final
focal_class.original_string: private static final String DATE_FORMAT_SHORT = "yyyy-MM-dd";
focal_class.type: String
focal_class.var_name: DATE_FORMAT_SHORT
focal_class.declarator: DATE_FORMATTER_YEAR_MONTH_DAY =
        DateTimeFormat.forPattern(DATE_FORMAT_SHORT)
focal_class.modifier: private static final
focal_class.original_string: private static final DateTimeFormatter DATE_FORMATTER_YEAR_MONTH_DAY =
        DateTimeFormat.forPattern(DATE_FORMAT_SHORT);
focal_class.type: DateTimeFormatter
focal_class.var_name: DATE_FORMATTER_YEAR_MONTH_DAY
focal_class.declarator: DATE_FORMAT_SHORT_WITHOUTDAY = "yyyy-MM"
focal_class.modifier: private static final
focal_class.original_string: private static final String DATE_FORMAT_SHORT_WITHOUTDAY = "yyyy-MM";
focal_class.type: String
focal_class.var_name: DATE_FORMAT_SHORT_WITHOUTDAY
focal_class.declarator: DATE_FORMATTER_YEAR_MONTH =
        DateTimeFormat.forPattern(DATE_FORMAT_SHORT_WITHOUTDAY)
focal_class.modifier: private static final
focal_class.original_string: private static final DateTimeFormatter DATE_FORMATTER_YEAR_MONTH =
        DateTimeFormat.forPattern(DATE_FORMAT_SHORT_WITHOUTDAY);
focal_class.type: DateTimeFormatter
focal_class.var_name: DATE_FORMATTER_YEAR_MONTH
focal_class.declarator: DATE_FORMAT_SHORT_WITHOUTDAY_NODASH = "yyyyMM"
focal_class.modifier: private static final
focal_class.original_string: private static final String DATE_FORMAT_SHORT_WITHOUTDAY_NODASH = "yyyyMM";
focal_class.type: String
focal_class.var_name: DATE_FORMAT_SHORT_WITHOUTDAY_NODASH
focal_class.declarator: DATE_FORMATTER_YEAR_MONTH_NO_DASH =
        DateTimeFormat.forPattern(DATE_FORMAT_SHORT_WITHOUTDAY_NODASH)
focal_class.modifier: private static final
focal_class.original_string: private static final DateTimeFormatter DATE_FORMATTER_YEAR_MONTH_NO_DASH =
        DateTimeFormat.forPattern(DATE_FORMAT_SHORT_WITHOUTDAY_NODASH);
focal_class.type: DateTimeFormatter
focal_class.var_name: DATE_FORMATTER_YEAR_MONTH_NO_DASH
focal_class.declarator: formatters = new ArrayList<DateTimeFormatter>()
focal_class.modifier: private static final
focal_class.original_string: private static final List<DateTimeFormatter> formatters = new ArrayList<DateTimeFormatter>();
focal_class.type: List<DateTimeFormatter>
focal_class.var_name: formatters
focal_class.file: aw-reporting-model/src/main/java/com/google/api/ads/adwords/awreporting/model/util/DateUtil.java
focal_class.identifier: DateUtil
focal_class.class_method_signature: DateUtil.DateUtil()
focal_class.full_signature: private  DateUtil()
focal_class.identifier: DateUtil
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  DateUtil()
focal_class.class_method_signature: DateUtil.formatYearMonthDayNoDash(Date date)
focal_class.full_signature: public static String formatYearMonthDayNoDash(Date date)
focal_class.identifier: formatYearMonthDayNoDash
focal_class.modifiers: public static
focal_class.parameters: (Date date)
focal_class.return: String
focal_class.signature: String formatYearMonthDayNoDash(Date date)
focal_class.class_method_signature: DateUtil.formatYearMonthDayNoDash(LocalDate date)
focal_class.full_signature: public static String formatYearMonthDayNoDash(LocalDate date)
focal_class.identifier: formatYearMonthDayNoDash
focal_class.modifiers: public static
focal_class.parameters: (LocalDate date)
focal_class.return: String
focal_class.signature: String formatYearMonthDayNoDash(LocalDate date)
focal_class.class_method_signature: DateUtil.formatYearMonthDay(Date date)
focal_class.full_signature: public static String formatYearMonthDay(Date date)
focal_class.identifier: formatYearMonthDay
focal_class.modifiers: public static
focal_class.parameters: (Date date)
focal_class.return: String
focal_class.signature: String formatYearMonthDay(Date date)
focal_class.class_method_signature: DateUtil.formatYearMonthDay(LocalDate date)
focal_class.full_signature: public static String formatYearMonthDay(LocalDate date)
focal_class.identifier: formatYearMonthDay
focal_class.modifiers: public static
focal_class.parameters: (LocalDate date)
focal_class.return: String
focal_class.signature: String formatYearMonthDay(LocalDate date)
focal_class.class_method_signature: DateUtil.formatYearMonth(Date date)
focal_class.full_signature: public static String formatYearMonth(Date date)
focal_class.identifier: formatYearMonth
focal_class.modifiers: public static
focal_class.parameters: (Date date)
focal_class.return: String
focal_class.signature: String formatYearMonth(Date date)
focal_class.class_method_signature: DateUtil.formatYearMonth(LocalDate date)
focal_class.full_signature: public static String formatYearMonth(LocalDate date)
focal_class.identifier: formatYearMonth
focal_class.modifiers: public static
focal_class.parameters: (LocalDate date)
focal_class.return: String
focal_class.signature: String formatYearMonth(LocalDate date)
focal_class.class_method_signature: DateUtil.formatYearMonthNoDash(Date date)
focal_class.full_signature: public static String formatYearMonthNoDash(Date date)
focal_class.identifier: formatYearMonthNoDash
focal_class.modifiers: public static
focal_class.parameters: (Date date)
focal_class.return: String
focal_class.signature: String formatYearMonthNoDash(Date date)
focal_class.class_method_signature: DateUtil.formatYearMonthNoDash(LocalDate date)
focal_class.full_signature: public static String formatYearMonthNoDash(LocalDate date)
focal_class.identifier: formatYearMonthNoDash
focal_class.modifiers: public static
focal_class.parameters: (LocalDate date)
focal_class.return: String
focal_class.signature: String formatYearMonthNoDash(LocalDate date)
focal_class.class_method_signature: DateUtil.parseLocalDate(String timestamp)
focal_class.full_signature: public static LocalDate parseLocalDate(String timestamp)
focal_class.identifier: parseLocalDate
focal_class.modifiers: public static
focal_class.parameters: (String timestamp)
focal_class.return: LocalDate
focal_class.signature: LocalDate parseLocalDate(String timestamp)
focal_class.class_method_signature: DateUtil.lastMonthInYearMonthFormat()
focal_class.full_signature: public static String lastMonthInYearMonthFormat()
focal_class.identifier: lastMonthInYearMonthFormat
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String lastMonthInYearMonthFormat()
focal_class.class_method_signature: DateUtil.firstDayPreviousMonth()
focal_class.full_signature: public static LocalDate firstDayPreviousMonth()
focal_class.identifier: firstDayPreviousMonth
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: LocalDate
focal_class.signature: LocalDate firstDayPreviousMonth()
focal_class.class_method_signature: DateUtil.lastDayPreviousMonth()
focal_class.full_signature: public static LocalDate lastDayPreviousMonth()
focal_class.identifier: lastDayPreviousMonth
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: LocalDate
focal_class.signature: LocalDate lastDayPreviousMonth()
focal_class.class_method_signature: DateUtil.firstDayMonth(LocalDate localDate)
focal_class.full_signature: public static LocalDate firstDayMonth(LocalDate localDate)
focal_class.identifier: firstDayMonth
focal_class.modifiers: public static
focal_class.parameters: (LocalDate localDate)
focal_class.return: LocalDate
focal_class.signature: LocalDate firstDayMonth(LocalDate localDate)
focal_class.class_method_signature: DateUtil.lastDayMonth(LocalDate localDate)
focal_class.full_signature: public static LocalDate lastDayMonth(LocalDate localDate)
focal_class.identifier: lastDayMonth
focal_class.modifiers: public static
focal_class.parameters: (LocalDate localDate)
focal_class.return: LocalDate
focal_class.signature: LocalDate lastDayMonth(LocalDate localDate)
focal_method.body: public static LocalDate parseLocalDate(String timestamp) {
      if (timestamp != null) {
        for (DateTimeFormatter formatter : DateUtil.formatters) {
          try {
            return formatter.parseLocalDate(timestamp);
          } catch (IllegalArgumentException e) {
            // Silently skips to the next formatter.
          }
        }
      }
      return null;
    }
focal_method.class_method_signature: DateUtil.parseLocalDate(String timestamp)
focal_method.full_signature: public static LocalDate parseLocalDate(String timestamp)
focal_method.identifier: parseLocalDate
focal_method.invocations: parseLocalDate
focal_method.modifiers: public static
focal_method.parameters: (String timestamp)
focal_method.return: LocalDate
focal_method.signature: LocalDate parseLocalDate(String timestamp)