love fish大鹏一曰同风起,扶摇直上九万里

常用链接

统计

积分与排名

friends

link

最新评论

格式化System.currentTimeMillis()

 1 import java.text.SimpleDateFormat;
 2 import java.util.Locale;
 3 
 4 
 5 public class FormatCurrentTime {
 6     /**
 7      * @param args
 8      */
 9     public static void main(String[] args) {
10         
11         SimpleDateFormat sdf = new SimpleDateFormat("", Locale.SIMPLIFIED_CHINESE);
12         sdf.applyPattern("yyyy年MM月dd日 HH时mm分ss秒");
13         System.out.println(sdf.format(System.currentTimeMillis()));
14         
15     }
16 }
17 

posted on 2007-01-12 14:57 liaojiyong 阅读(823) 评论(0)  编辑  收藏 所属分类: Java


只有注册用户登录后才能发表评论。


网站导航: