关于java时间类型比较

int res = date1.compareTo(date2),相等则返回0,date1大返回1,否则返回-1。

posted on 2018-09-30 17:41  才小有  阅读(2247)  评论(0)    收藏  举报

导航