java

输出时间:

        System.out.println(String.format("%d", System.currentTimeMillis()));
        System.out.println(String.format("aaa %tF %tT aa", Calendar.getInstance().getTime(),Calendar.getInstance().getTime()));
1550749006147
aaa 2019-02-21 19:36:46 aa

 

posted @ 2019-02-21 19:38  xiaodebing  阅读(94)  评论(0编辑  收藏  举报