I am creating a feature in an Android app to get an arbitrary date (past, present or future) and find the difference relative to now.
Both my now and
now
long now = System.currentTimeMillis();
DateUtils.getRelativeDateTimeString(mContext, now), DateUtils.SECOND_IN_MILLIS, DateUtils.DAY_IN_MILLIS, 0)
a link!