编程语言

img dytt

JAVA笔记1--如何获取年月日时分秒毫秒

发表于2004/10/20 10:43:00  1203人阅读

分类: Java

  Calendar CD = Calendar.getInstance();
  int YY = CD.get(Calendar.YEAR) ;
  int MM = CD.get(Calendar.MONTH)+1;
  int DD = CD.get(Calendar.DATE);
  int HH = CD.get(Calendar.HOUR);
  int NN = CD.get(Calendar.MINUTE);
  int SS = CD.get(Calendar.SECOND);
  int MI = CD.get(Calendar.MILLISECOND);
阅读全文
0 0

相关文章推荐

img
取 消
img