@Test public void lastMonthTodayInBeginTest() { System.out.println(sdf.format(TimeUtils.lastMonthTodayInBegin())); System.out.println(sdf.format(TimeUtils.lastFewDaysInBegin(30))); }
public static Date lastMonthTodayInBegin() { return DateTime.now().minusMonths(1) .withHourOfDay(0).withMinuteOfHour(0).withSecondOfMinute(0).withMillisOfSecond(0).toDate(); }
TimeUtils { public static Date lastMonthTodayInBegin() { return DateTime.now().minusMonths(1) .withHourOfDay(0).withMinuteOfHour(0).withSecondOfMinute(0).withMillisOfSecond(0).toDate(); } }
TimeUtils { public static Date lastMonthTodayInBegin() { return DateTime.now().minusMonths(1) .withHourOfDay(0).withMinuteOfHour(0).withSecondOfMinute(0).withMillisOfSecond(0).toDate(); } private  TimeUtils(); }
TimeUtils { public static Date lastMonthTodayInBegin() { return DateTime.now().minusMonths(1) .withHourOfDay(0).withMinuteOfHour(0).withSecondOfMinute(0).withMillisOfSecond(0).toDate(); } private  TimeUtils(); static String nowStr(); static String date2Str(Date date); static String date2Str(long date); static int month(); static Date yesterdayBegin(); static Date yesterdayEnd(); static Date pastWeekStart(); static Long howLongBeginThisMonth(); static Date beginThisMonth(); static Date lastMonthTodayInBegin(); static Date lastFewDaysInBegin(Integer days); static Date fewDaysAgoEnd(int index); static Date fewDaysAgoBegin(int index); static Date endMonth(int year, int month); static Date beginMonth(int year, int month); static Date zeroTimeZone(Date date); static String nowTimeWithZone(); }
TimeUtils { public static Date lastMonthTodayInBegin() { return DateTime.now().minusMonths(1) .withHourOfDay(0).withMinuteOfHour(0).withSecondOfMinute(0).withMillisOfSecond(0).toDate(); } private  TimeUtils(); static String nowStr(); static String date2Str(Date date); static String date2Str(long date); static int month(); static Date yesterdayBegin(); static Date yesterdayEnd(); static Date pastWeekStart(); static Long howLongBeginThisMonth(); static Date beginThisMonth(); static Date lastMonthTodayInBegin(); static Date lastFewDaysInBegin(Integer days); static Date fewDaysAgoEnd(int index); static Date fewDaysAgoBegin(int index); static Date endMonth(int year, int month); static Date beginMonth(int year, int month); static Date zeroTimeZone(Date date); static String nowTimeWithZone();  }