|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jgit.util.RelativeDateFormatter
public class RelativeDateFormatter
Formatter to format timestamps relative to the current time using time units
in the format defined by git log --relative-date.
| Constructor Summary | |
|---|---|
RelativeDateFormatter()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
format(java.util.Date when)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RelativeDateFormatter()
| Method Detail |
|---|
public static java.lang.String format(java.util.Date when)
when - Date to format
Date compared to now formatted in the same
relative format as returned by git log --relative-date
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||