每日总结59

1.今天学习了如何获取当前时间并且继续加减,还有比较

Date date = new Date();//时间对象
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
    sdf.format(date);//获取当前系统时间
    Calendar calendar = Calendar.getInstance();//日历对象
    calendar.setTime(date);//设置当前时间
    calendar.add(Calendar.DAY_OF_MONTH,0);//加减day时间

2.明天继续学习

原文地址:https://www.cnblogs.com/chenghaixiang/p/14221477.html