1 Articles, Search for '시간'

  1. 2011/03/31 JAVA 현재시간 구하기
Programming/JAVA&JSP2011/03/31 14:33
1)
현재 시간구하기 1/10000 초까지..
String date = new SimpleDateFormat("yyyyMMddHHmmsssss").format(new Date());

2)
간단한 현재시간 찍기
long startTime = System.currentTimeMillis();
System.out.println("Job 시작 시간 : "+ new Timestamp(startTime));

현재시간을 String Format으로... 한글변수 은근히 재미있네
Calendar 좋은카렌다 = Calendar.getInstance();
SimpleDateFormat 간단한날짜형식 = new SimpleDateFormat("yyyyMMddHHmmssSSS");
System.out.println("현재 시간 : " + 간단한날짜형식.format(좋은카렌다.getTime()));                  
크리에이티브 커먼즈 라이센스
Creative Commons License
2011/03/31 14:33 2011/03/31 14:33
Posted by
Tags

Leave your greetings.