com.github.jobs.utils
Class RelativeDate
java.lang.Object
com.github.jobs.utils.RelativeDate
public class RelativeDate
- extends Object
|
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 |
RelativeDate
public RelativeDate()
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 responsetime - time to compare with current time
- Returns:
- a string representing the time ago
Copyright © 2012. All Rights Reserved.