| Package | Description |
|---|---|
| at.molindo.thirdparty.org.apache.wicket.util.time |
| Modifier and Type | Field and Description |
|---|---|
static Duration |
Duration.MAXIMUM
Constant for maximum duration.
|
static Duration |
Duration.NONE
Constant for no duration.
|
static Duration |
Duration.ONE_DAY
Constant for one day.
|
static Duration |
Duration.ONE_HOUR
Constant for one hour.
|
static Duration |
Duration.ONE_MINUTE
Constant for on minute.
|
static Duration |
Duration.ONE_SECOND
Constant for one second.
|
static Duration |
Duration.ONE_WEEK
Constant for one week.
|
| Modifier and Type | Method and Description |
|---|---|
Duration |
Duration.add(Duration duration)
Adds a given
Duration to this Duration. |
static Duration |
Duration.benchmark(Runnable code)
Benchmark the given command.
|
static Duration |
Duration.days(double days)
Retrieves the
Duration based on days. |
static Duration |
Duration.days(int days)
Retrieves the
Duration based on days. |
static Duration |
Duration.elapsed(Time start)
Calculates the amount of time elapsed since start time.
|
Duration |
Time.elapsedSince()
Calculates the amount of time that has elapsed since this
Time value. |
Duration |
Time.fromNow()
Retrieves the
Duration from now to this Time
value. |
static Duration |
Duration.hours(double hours)
Retrieves the
Duration based on hours. |
static Duration |
Duration.hours(int hours)
Retrieves the
Duration based on hours. |
static Duration |
Duration.milliseconds(double milliseconds)
Retrieves the
Duration based on milliseconds. |
static Duration |
Duration.milliseconds(long milliseconds)
Retrieves the
Duration based on milliseconds. |
static Duration |
Duration.minutes(double minutes)
Retrieves the
Duration based on minutes. |
static Duration |
Duration.minutes(int minutes)
Retrieves the
Duration based on minutes. |
static Duration |
Duration.seconds(double seconds)
Retrieves the
Duration based on seconds. |
static Duration |
Duration.seconds(int seconds)
Retrieves the
Duration based on seconds. |
Duration |
Duration.subtract(Duration that)
Subtracts a given
Duration from this Duration. |
Duration |
Time.subtract(Time that)
Subtract time from this and returns the difference as a
Duration object. |
static Duration |
Duration.valueOf(long time)
Retrieves the given
long as a Duration. |
| Modifier and Type | Method and Description |
|---|---|
Time |
Time.add(Duration duration)
Adds the given
Duration to this Time object,
moving the time into the future. |
Duration |
Duration.add(Duration duration)
Adds a given
Duration to this Duration. |
Time |
Time.subtract(Duration duration)
Subtracts the given
Duration from this Time
object, moving the time into the past. |
Duration |
Duration.subtract(Duration that)
Subtracts a given
Duration from this Duration. |
Copyright © 2014 Molindo GmbH. All Rights Reserved.