小知识不断补充

1、java、android中获取当前时间

   this.sdf = new SimpleDateFormat("yyyy/MM/dd-hh:mm:ss", Locale.CHINA);
        String time = sdf.format(new Date(System.currentTimeMillis()));

posted @ 2014-07-14 15:21  楠楠IT  阅读(133)  评论(0编辑  收藏  举报