|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.util.time.TimeSpan
public class TimeSpan
A timespan between two Dates.
| Constructor Summary | |
|---|---|
TimeSpan(java.util.Date from,
java.util.Date to)
Construct a time span. |
|
| Method Summary | |
|---|---|
java.util.Date |
getFrom()
|
long |
getSpan(TimeUnit unit)
Get the time span specified by the unit. |
java.util.Date |
getTo()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeSpan(java.util.Date from,
java.util.Date to)
from - The from date/time.to - The two date/time.| Method Detail |
|---|
public java.util.Date getFrom()
public long getSpan(TimeUnit unit)
unit - The unit desired.
public java.util.Date getTo()
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||