java.lang.Object
org.eclipse.jgit.util.RelativeDateFormatter
Formatter to format timestamps relative to the current time using time units
in the format defined by
git log --relative-date.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RelativeDateFormatter
public RelativeDateFormatter()
-
-
Method Details
-
format
Deprecated.Useformat(Instant)instead.Get age of givenDatecompared to now formatted in the same relative format as returned bygit log --relative-date -
format
Get age of givenInstantcompared to now formatted in the same relative format as returned bygit log --relative-date- Parameters:
when- an instant to format- Returns:
- age of given instant compared to now formatted in
the same relative format as returned by
git log --relative-date - Since:
- 7.2
-
format(Instant)instead.