com.github.jobs.utils
Class RelativeDate

java.lang.Object
  extended by com.github.jobs.utils.RelativeDate

public class RelativeDate
extends Object


Constructor Summary
RelativeDate()
           
 
Method Summary
static String getTimeAgo(android.content.Context context, long time)
          This method returns a String representing the relative date by comparing the Calendar being passed in to the date / time that it is right now.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelativeDate

public RelativeDate()
Method Detail

getTimeAgo

public static String getTimeAgo(android.content.Context context,
                                long time)
This method returns a String representing the relative date by comparing the Calendar being passed in to the date / time that it is right now.

Parameters:
context - used to build the string response
time - time to compare with current time
Returns:
a string representing the time ago


Copyright © 2012-2013. All Rights Reserved.