When I call a youtube API, it returns the following timestamp:
2012-11-13T18:38:30Z
I need to calculate 'time ago' based on current time and the above time stamp. So, using the timestamp above, and current time, I should get something like 6 days ago, etc.
I need to convert it in android, so any android or java answer can help.
There seems to be a function that calculates time ago, but you need to first convert the 2012-11-13T18:38:30Z to millisecond or seconds, or whatever
and my question is, in java, how do you convert 2012-11-13T18:38:30Z to something else that can give me seconds, days, or whatever.