|
||||||||||
| 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.
| Field Summary | |
|---|---|
static int |
DAYS_WEEK
Days in a week. |
static int |
HOURS_DAY
Hours in a day. |
static int |
MINUTES_HOUR
Minutes in an hour. |
static int |
MONTHS_YEAR
Months in a year. |
static int |
SECONDS_MINUTE
Seconds in a minute. |
static int |
YEARS_CENTURY
Years in a century. |
static int |
YEARS_MIL
Years in a mil. |
static int |
YEARS_SCORE
Years in a score. |
| Constructor Summary | |
|---|---|
TimeSpan(Date from,
Date to)
Construct a time span. |
|
| Method Summary | |
|---|---|
Date |
getFrom()
|
long |
getSpan(TimeUnit unit)
Get the time span specified by the unit. |
Date |
getTo()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int YEARS_CENTURY
public static final int HOURS_DAY
public static final int MINUTES_HOUR
public static final int SECONDS_MINUTE
public static final int MONTHS_YEAR
public static final int DAYS_WEEK
public static final int YEARS_MIL
public static final int YEARS_SCORE
| Constructor Detail |
|---|
public TimeSpan(Date from,
Date to)
from - The from date/time.to - The two date/time.| Method Detail |
|---|
public Date getFrom()
public long getSpan(TimeUnit unit)
unit - The unit desired.
public Date getTo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||