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 testYearMonthDay() {
      calendar.set(2011, Calendar.SEPTEMBER, 15, 0, 0);
      int offset =
          calendar.getTimeZone().getOffset(calendar.getTimeInMillis())
              - localCalendar.getTimeZone().getOffset(calendar.getTimeInMillis());
  
      Date date = new Date(calendar.getTimeInMillis() + offset);
      String formatted = DateUtil.formatYearMonthDay(date);
      assertEquals(
          "Error formatting yyyy-MM-dd for " + calendar.getTimeZone().getID(),
          "2011-09-15",
          formatted);
  
      calendar.set(2013, Calendar.JULY, 1, 0, 0);
      offset =
          calendar.getTimeZone().getOffset(calendar.getTimeInMillis())
              - localCalendar.getTimeZone().getOffset(calendar.getTimeInMillis());
      date.setTime(calendar.getTimeInMillis() + offset);
      formatted = DateUtil.formatYearMonthDay(date);
      assertEquals(
          "Error formatting yyyy-MM-dd for " + calendar.getTimeZone().getID(),
          "2013-07-01",
          formatted);
  
      LocalDate localDate = new LocalDate(2011, 9, 15);
      formatted = DateUtil.formatYearMonthDay(localDate);
      assertEquals(
          "Error formatting yyyy-MM-dd for " + calendar.getTimeZone().getID(),
          "2011-09-15",
          formatted);
  
      localDate = new LocalDate(2013, 1, 31);
      formatted = DateUtil.formatYearMonthDay(localDate);
      assertEquals(
          "Error formatting yyyy-MM-dd for " + calendar.getTimeZone().getID(),
          "2013-01-31",
          formatted);
    }
test_case.class_method_signature: DateUtilTest.testYearMonthDay()
test_case.full_signature: @Test public void testYearMonthDay()
test_case.identifier: testYearMonthDay
test_case.invocations: set getOffset getTimeZone getTimeInMillis getOffset getTimeZone getTimeInMillis getTimeInMillis formatYearMonthDay assertEquals getID getTimeZone set getOffset getTimeZone getTimeInMillis getOffset getTimeZone getTimeInMillis setTime getTimeInMillis formatYearMonthDay assertEquals getID getTimeZone formatYearMonthDay assertEquals getID getTimeZone formatYearMonthDay assertEquals getID getTimeZone
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testYearMonthDay()
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 String formatYearMonthDay(Date date) {
      return formatYearMonthDay(new LocalDate(date));
    }
focal_method.class_method_signature: DateUtil.formatYearMonthDay(Date date)
focal_method.full_signature: public static String formatYearMonthDay(Date date)
focal_method.identifier: formatYearMonthDay
focal_method.invocations: formatYearMonthDay
focal_method.modifiers: public static
focal_method.parameters: (Date date)
focal_method.return: String
focal_method.signature: String formatYearMonthDay(Date date)