Skip to content

Commit 91e0e7e

Browse files
author
371718330@qq.com
committed
获取时间戳到毫秒
1 parent bd7da53 commit 91e0e7e

File tree

1 file changed

+10
-0
lines changed
  • CommonUtil/src/main/java/com/jingewenku/abrahamcaijin/commonutil

1 file changed

+10
-0
lines changed

CommonUtil/src/main/java/com/jingewenku/abrahamcaijin/commonutil/AppDateMgr.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,6 +1509,16 @@ public static String time_to_second(Date date) {
15091509
return String.format("%ts", date);
15101510
}
15111511

1512+
/**
1513+
* 获取时间戳到毫秒
1514+
*
1515+
* @param date
1516+
* @return
1517+
*/
1518+
public static String time_to_mill(Date date) {
1519+
return String.format("%tQ", date);
1520+
}
1521+
15121522

15131523
// /**
15141524
// * 身份证号转生日

0 commit comments

Comments
 (0)