摘要:
Java学习过程中的总结的小知识点 (主要是自己不会的知识和容易搞错的东西) 计算某个程序运行的时间 long stime=System.currentTimeMillis(); copy3(file, file2);//copy是一个函数 long etime=System.currentTime 阅读全文
posted @ 2016-08-02 10:28
鸡毛落一地
阅读(132)
评论(0)
推荐(0)
摘要:
年月日的转换 // 这里就是把时间格式化成你要的 SimpleDateFormat sdf = new SimpleDateFormat("yyyy");//将时间转换为年 SimpleDateFormat sdf = new SimpleDateFormat("yyyy MM dd HH:mm:s 阅读全文
posted @ 2016-08-02 10:25
鸡毛落一地
阅读(937)
评论(0)
推荐(0)

浙公网安备 33010602011771号