您的位置: 首页 > IT文章 > 关于java时间类型比较 关于java时间类型比较 分类: IT文章 • 2023-12-15 17:06:30 int res = date1.compareTo(date2),相等则返回0,date1大返回1,否则返回-1。