I mite be asking a simple question here, but please take it easy on me.
OK... I have a TextView
that displays my notes created date - that's working all fine, but how do I convert the time stamp into "7 min ago", "yesterday", "3 weeks ago", "2 months ago" etc.
// joda-time
final String timeFormat = "HH:mm"; ///'o''clock'
final String dateFormat = "EEE, MMM.DD YYYY"; ///EEE MMM dd yyyy
final DateTime createTime = note.getCreateTime();
final String createdString = createTime.toLocalDate().toString(dateFormat) + " " + createTime.toLocalTime().toString(timeFormat);
String timestamp = StringUtils.wrapWithEmptyLines(getString(R.string.note_list_timestamp_info_created,createdString));
final TextView textTS = (TextView) view.findViewById(R.id.timestamp);
textTS.setText(timestamp);