I want to convert the time stamp (epoch time) to human readable string.
For that i am using calendar.setTimeInMillis(timeSinceEpoch) function to create the calender object and to get the date time string in human readable format.
I am confused on, How can I find out that the time stamp (epoch time) is of today or yesterday or it is in the same week as per the system’s current date and time?
Is there any API’s to achieve this in android?
Thanks.
Its really simple:
For more formats,please refer http://download.oracle.com/javase/1.5.0/docs/api/java/util/Formatter.html