This commit is contained in:
looly
2021-11-24 09:35:50 +08:00
parent d0a86d5734
commit 612884e0f6
2 changed files with 3 additions and 1 deletions

View File

@@ -1624,7 +1624,9 @@ public class DateUtil extends CalendarUtil {
*
* @param date 日期
* @return int
* @deprecated 2022年后结果溢出此方法废弃
*/
@Deprecated
public static int toIntSecond(Date date) {
return Integer.parseInt(DateUtil.format(date, "yyMMddHHmm"));
}