@Test public void yearStart() { Date date = DateUtils.yearStart(); assertNotNull(date); GregorianCalendar calendar = new GregorianCalendar(); calendar.setTime(date); assertEquals(1, calendar.get(DAY_OF_YEAR)); }
public static Date yearStart() { final GregorianCalendar calendar = new GregorianCalendar(US); calendar.set(DAY_OF_YEAR, 1); return calendar.getTime(); }
DateUtils { public static Date yearStart() { final GregorianCalendar calendar = new GregorianCalendar(US); calendar.set(DAY_OF_YEAR, 1); return calendar.getTime(); } }
DateUtils { public static Date yearStart() { final GregorianCalendar calendar = new GregorianCalendar(US); calendar.set(DAY_OF_YEAR, 1); return calendar.getTime(); }  }
DateUtils { public static Date yearStart() { final GregorianCalendar calendar = new GregorianCalendar(US); calendar.set(DAY_OF_YEAR, 1); return calendar.getTime(); }  static Date today(); static Date yesterday(); static Date addDays(final int days, final Calendar from); static Date addDays(final int days, final Date from); static Date addDays(final int days, final long from); static Date addMonths(final int months, final Calendar from); static Date addMonths(final int months, final Date from); static Date addMonths(final int months, final long from); static Date addYears(final int years, final Calendar from); static Date addYears(final int years, final Date from); static Date addYears(final int years, final long from); static Date addWeeks(final int weeks, final Calendar from); static Date addWeeks(final int weeks, final Date from); static Date addWeeks(final int weeks, final long from); static Date yearStart(); static Date yearEnd(); }
DateUtils { public static Date yearStart() { final GregorianCalendar calendar = new GregorianCalendar(US); calendar.set(DAY_OF_YEAR, 1); return calendar.getTime(); }  static Date today(); static Date yesterday(); static Date addDays(final int days, final Calendar from); static Date addDays(final int days, final Date from); static Date addDays(final int days, final long from); static Date addMonths(final int months, final Calendar from); static Date addMonths(final int months, final Date from); static Date addMonths(final int months, final long from); static Date addYears(final int years, final Calendar from); static Date addYears(final int years, final Date from); static Date addYears(final int years, final long from); static Date addWeeks(final int weeks, final Calendar from); static Date addWeeks(final int weeks, final Date from); static Date addWeeks(final int weeks, final long from); static Date yearStart(); static Date yearEnd();  }