Package org.eclipse.jgit.util
Class RelativeDateFormatter
- java.lang.Object
-
- org.eclipse.jgit.util.RelativeDateFormatter
-
public class RelativeDateFormatter extends Object
Formatter to format timestamps relative to the current time using time units in the format defined bygit log --relative-date
.
-
-
Constructor Summary
Constructors Constructor Description RelativeDateFormatter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
format(Date when)
Get age of givenDate
compared to now formatted in the same relative format as returned bygit log --relative-date
-