?
?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-03 11:05
交口稱贊 閱讀(5069)
評論(3) 編輯 收藏 所屬分類:
java相關