摘要: 时间加减秒数 /** * 时间加减秒数 * @param startDate 要处理的时间,Null则为当前时间 * @param seconds 加减的秒数 * @return */public static Date dateAddSeconds(Date startDate, int seco 阅读全文
posted @ 2021-08-10 16:01 游走人间的蒲公英 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 时间加减分钟 /** * 时间加减分钟 * @param startDate 要处理的时间,Null则为当前时间 * @param minutes 加减的分钟 * @return */public static Date dateAddMinutes(Date startDate, int minu 阅读全文
posted @ 2021-08-10 13:41 游走人间的蒲公英 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 获取当前系统时间最近12月的年月(含当月) public static List getLatest12Month(){ String[] latest12Months = new String[12]; Calendar cal = Calendar.getInstance(); List lis 阅读全文
posted @ 2021-08-10 13:39 游走人间的蒲公英 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 取得当前月份的天数 public static int getMonthLastDay(int year, int month) { Calendar a = Calendar.getInstance(); a.set(Calendar.YEAR, year); a.set(Calendar.MON 阅读全文
posted @ 2021-08-10 13:37 游走人间的蒲公英 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 得到指定月的天数 public static int getMonthLastDay(int year, int month) { Calendar a = Calendar.getInstance(); a.set(Calendar.YEAR, year); a.set(Calendar.MONT 阅读全文
posted @ 2021-08-10 11:27 游走人间的蒲公英 阅读(51) 评论(0) 推荐(0) 编辑