Package | Description |
---|---|
gov.sandia.cognition.time |
Provides classes for dealing with temporal data.
|
Modifier and Type | Field and Description |
---|---|
static DefaultDuration |
DefaultDuration.DAY
A day in duration.
|
static DefaultDuration |
DefaultDuration.HOUR
An hour in duration.
|
static DefaultDuration |
DefaultDuration.MAX_VALUE
The maximum value of a duration.
|
static DefaultDuration |
DefaultDuration.MILLISECOND
A millisecond in duration.
|
static DefaultDuration |
DefaultDuration.MIN_VALUE
The minimum value of a duration.
|
static DefaultDuration |
DefaultDuration.MINUTE
A minute in duration.
|
static DefaultDuration |
DefaultDuration.SECOND
A second in duration.
|
static DefaultDuration |
DefaultDuration.ZERO
A zero duration.
|
Modifier and Type | Method and Description |
---|---|
static DefaultDuration |
DefaultDuration.fromDays(double days)
Creates a new
DefaultDuration from the given number of
days. |
static DefaultDuration |
DefaultDuration.fromHours(double hours)
Creates a new
DefaultDuration from the given number of
hours. |
static DefaultDuration |
DefaultDuration.fromMilliseconds(double milliseconds)
Creates a new
DefaultDuration from the given number of
milliseconds. |
static DefaultDuration |
DefaultDuration.fromMinutes(double minutes)
Creates a new
DefaultDuration from the given number of
minutes. |
static DefaultDuration |
DefaultDuration.fromSeconds(double seconds)
Creates a new
DefaultDuration from the given number of
seconds. |