가능한 중복 밀리 초 문자열로 변환 : 나는 밀리 초 문자열이 있고 날짜 문자열로 변환 할
how to convert milliseconds to date format in android?날짜 문자열에
합니다. 이처럼
:
밀리 초 : 1345032624325E12 -> 날짜 : 수요일 2012년 8월 15일 14시 10분 24초
내가 어떻게 할 수 있습니까?
가능한 중복 밀리 초 문자열로 변환 : 나는 밀리 초 문자열이 있고 날짜 문자열로 변환 할
how to convert milliseconds to date format in android?날짜 문자열에
합니다. 이처럼
:
밀리 초 : 1345032624325E12 -> 날짜 : 수요일 2012년 8월 15일 14시 10분 24초
내가 어떻게 할 수 있습니까?
희망이 하나를 언급 질문이 정확히 동일하지 않습니다, 사실 how to convert milliseconds to date format in android?
private String getDate(long milliSeconds, String dateFormat)
{
// Create a DateFormatter object for displaying date in specified format.
DateFormat formatter = new SimpleDateFormat(dateFormat);
// Create a calendar object that will convert the date and time value in milliseconds to date.
Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(milliSeconds);
return formatter.format(calendar.getTime());
}
Stack Overflow에서 중복 질문을 발견하면 대답하지 말고 질문에 대한 의견을 남기고 가능한 중복으로 표시하십시오. – ChrisF
ChrisF 님, 고맙습니다. –
을하는 데 도움이됩니다. 여기서 OP는 단지 밀리 초가 아닌 밀리 초 문자열을 변환하는 방법을 묻습니다. –
질문을 올리기 전에 검색하십시오. @ OleksandrBondarenko는 여전히 이것에 대해 많은 질문을 던졌습니다. –
@OleksandrBondarenko 일반적으로 나는 이것을 다시 열어 볼 수는 있지만,이 갈라진 털이 아닌가? – casperOne