| | |
| | | return getDate(); |
| | | } |
| | | |
| | | /*public static void main(String[] args) throws ParseException { |
| | | // 打印测试日期包含 |
| | | Date time1 = getDate_str("2017-3-11"); |
| | | Date time2 = getDate_str("2017-3-15"); |
| | | Date time3 = getDate_str("2017-3-17"); |
| | | Date time4 = getDate_str("2017-3-12"); |
| | | Date time5 = getDate_str("2017-3-16"); |
| | | Date from = getDate_str("2017-3-12"); |
| | | Date to = getDate_str("2017-3-16"); |
| | | System.out.println(belongCalendar(time1, from, to)); |
| | | System.out.println(belongCalendar(time2, from, to)); |
| | | System.out.println(belongCalendar(time3, from, to)); |
| | | System.out.println(belongCalendar(time4, from, to)); |
| | | System.out.println(belongCalendar(time5, from, to)); |
| | | System.out.println(nowStr()); |
| | | |
| | | } |
| | | */ |
| | | /** |
| | | * 把日期往后增加一天. 正数往后推,负数往前移动 |
| | | * |
| | |
| | | } |
| | | |
| | | |
| | | // public static void main(String[] args) throws ParseException { |
| | | // System.out.println(getDay()); |
| | | // } |
| | | |
| | | |
| | | } |