不间断的连续的月份中的每一天,不间断的天数,连续月份
JAVA中的代码 主要是 为了算出SQL中的limit 的值
// 时间相减求天数
public static Long timePhaseReduction(String startTimeStr, String endTimeStr) {
long day = 0;
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
try {
原创
2022-01-24 09:16:46 ·
224 阅读 ·
0 评论