텍스트 파일 ( 0:0:1234 )을 읽어온 후 시간을 인트로 바꾸는데
int strint = (int) TimeMisc.getTimeMilliseconds( dataVO.getStartTime() );
public static long getTimeMilliseconds( String timeString ){
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ssSS");
sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
Date date;
try {
date = sdf.parse( timeString );
return date.getTime();
} catch (ParseException e) {
e.printStackTrace();
}
return 0;
}
시간이 적힌 여러 텍스트파일이 있는데 첫번째는 로그찍어본결과 strint가 잘 나오는데 두번째파일을 읽어올때부터는
java.text.ParseException: Unparseable date:
이런오류가 납니다 ..
무엇이 잘못된건가요 ?