public final class HumanDate extends Object
Modifier and Type | Method and Description |
---|---|
static String |
toHumanFormat(long fromTime)
This is a convenience method in addition to
toHumanFormat(long, long) , except the second parameter is
always now. |
static String |
toHumanFormat(long fromTime,
long toTime)
Generates a human representation of distance in time between two time stamps.
|
public static String toHumanFormat(long fromTime, long toTime)
fromTime
- start timestamp. This is a representation of time in milliseconds from January 1 1970.toTime
- end timestamp. This is a representation of time in milliseconds from January 1 1970.fromTime
and toTime
.public static String toHumanFormat(long fromTime)
toHumanFormat(long, long)
, except the second parameter is
always now.fromTime
- start date. This is a representation of time in milliseconds from January 1 1970.fromTime
and now.Copyright © 2019 JavaLite. All rights reserved.