Java實現獲取兩個日期相差天數

文章連接 最近項目的需求,微博徵信貸中首單模型在開發過程當中用到了部分時間差特徵和一些與訂單相關的信息來提升模型效果,時間差要求保留兩位小數的天數,代碼以下: public static float decimalFormat(String pattern, double value) { return Float.parseFloat(new DecimalFormat(patt
相關文章
相關標籤/搜索