git log --relative-date.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final long | |
| pack-priv static final long | |
| pack-priv static final long | |
| pack-priv static final long | |
| pack-priv static final long | |
| pack-priv static final long | |
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: age of givenjava. compared to now formatted in
the same relative format as returned by
git log --relative-datejava. to format
Deprecated
since 7.2. Use
format(Instant) instead.
Get age of given |
| public static String | Returns: age of given instant compared to now formatted in the same relative format as returned bygit log --relative-datean instant to format when)Get age of given |
| private static long | |
| private static long |
| DAY_IN_MILLIS | back to summary |
|---|---|
| pack-priv static final long DAY_IN_MILLIS | |
| HOUR_IN_MILLIS | back to summary |
|---|---|
| pack-priv static final long HOUR_IN_MILLIS | |
| MINUTE_IN_MILLIS | back to summary |
|---|---|
| pack-priv static final long MINUTE_IN_MILLIS | |
| MONTH_IN_MILLIS | back to summary |
|---|---|
| pack-priv static final long MONTH_IN_MILLIS | |
| SECOND_IN_MILLIS | back to summary |
|---|---|
| pack-priv static final long SECOND_IN_MILLIS | |
| WEEK_IN_MILLIS | back to summary |
|---|---|
| pack-priv static final long WEEK_IN_MILLIS | |
| YEAR_IN_MILLIS | back to summary |
|---|---|
| pack-priv static final long YEAR_IN_MILLIS | |
| RelativeDateFormatter | back to summary |
|---|---|
| public RelativeDateFormatter() | |
| format | back to summary |
|---|---|
| public static String format(Date when)
Get age of given
| |
| format | back to summary |
|---|---|
| public static String format(Instant when) Get age of given
| |
| round | back to summary |
|---|---|
| private static long round(long n, long unit) | |
| upperLimit | back to summary |
|---|---|
| private static long upperLimit(long unit) | |