posts - 66,  comments - 40,  trackbacks - 0
 

 

 

import java.text.*;

import java.util.*;
import java.sql.Timestamp;
public class Test{

public static void main( String args[] ){
    
   Timestamp date1 = new Timestamp(System.currentTimeMillis());
 
style 1: //DateFormat dateFm = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, cale.CHINA);

 //System.out.println(dateFm.format(date1)); 


style 2: SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

 System.out.println(sdf.format(date1));
  }
}


posted on 2006-01-10 20:44 happytian 阅读(162) 评论(0)  编辑  收藏

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


网站导航:
 
<2025年8月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456

Welcome here, my friend!

常用链接

留言簿(12)

随笔档案(66)

文章分类

文章档案(63)

web

最新随笔

搜索

  •  

积分与排名

  • 积分 - 89928
  • 排名 - 646

最新评论

阅读排行榜

评论排行榜