title: android java convert timestamp 2012-11-13T18:38:30Z to time ago
body: <p>When I call a youtube API, it returns the following timestamp: </p>
  
  <pre><code>2012-11-13T18:38:30Z
  </code></pre>
  
  <p>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.</p>
  
  <p>I need to convert it in android, so any android or java answer can help.</p>
  
  <p>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</p>
  
  <p>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.</p>