| | |
| | | return times; |
| | | } |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | public static Map<Date, Date> segmentationDateByTimeQuantum(Date startDate, Date endDate, int timeQuantum, int dateType) { |
| | | LinkedHashMap<Date, Date> result = new LinkedHashMap<Date, Date>(); |
| | | long startTimeMillisecond = startDate.getTime(); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 剪除日期的时间部分 |
| | | */ |
| | | public static Date trimTime(Date date) { |
| | | Calendar cal = Calendar.getInstance(); |
| | | cal.setTime(date); |
| | | |
| | | return dateTime(YYYY_MM_DD_HH_MM_SS, parseDateToStr(YYYY_MM_DD, cal.getTime()) + " 00:00:00"); |
| | | } |
| | | |
| | | /** |
| | | * 获取本月第一天 |
| | | * |
| | | * @return String |
| | | **/ |
| | | public static Date getMonthStart(Date date) { |
| | | Calendar cal = Calendar.getInstance(); |
| | |
| | | |
| | | /** |
| | | * 获取本月最后一天 |
| | | * |
| | | * @return String |
| | | **/ |
| | | public static Date getMonthEnd(Date date) { |
| | | Calendar cal = Calendar.getInstance(); |