Код: Выделить всё
private static final SimpleDateFormat mSegmentStartTimeFormatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");
Calendar calendar = Calendar.getInstance();
try {
calendar.setTime(mSegmentStartTimeFormatter.parse(startTime));
}
catch (ParseException e) {
e.printStackTrace();
}
return calendar.getTimeInMillis();
должен вернуть эквивалент [2012-08-15t15: 56: 02.038z]
Подробнее здесь: https://stackoverflow.com/questions/124 ... local-time