|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.TimeSpan
public class TimeSpan
A time span is measured in milliseconds.
| Field Summary | |
|---|---|
private long |
ts
My time span. |
| Constructor Summary | |
|---|---|
TimeSpan(Date start,
Date end)
Constructs a time span from star and end date. |
|
TimeSpan(long duration)
Constructs a new time span from a duration in ms. |
|
| Method Summary | |
|---|---|
String |
toString()
Formats this time span. |
static String |
toString(long span)
Formats a duration in milliseconds to a more readable string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private long ts
| Constructor Detail |
|---|
public TimeSpan(long duration)
public TimeSpan(Date start,
Date end)
| Method Detail |
|---|
public String toString()
toString in class Objectpublic static String toString(long span)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||