This is not 100% true for days. Days can actually be 23, 24 or 25 hours long (due to daylight saving adjustments.)
If you ask Duration to convert itself to milliseconds then it will work on the basis of 24 hours in a day. If you add or subtract it from a date it will take daylight saving into account.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Date | |
| public BaseDuration. | |
| public Duration | |
| public TimeDuration | |
| public DatumDependentDuration | |
| public TimeDatumDependentDuration | |
| public Duration | |
| public Duration | |
| public DatumDependentDuration | |
| public long |
| Duration | back to summary |
|---|---|
| public Duration(final int days, final int hours, final int minutes, final int seconds, final int millis) | |
| getAgo | back to summary |
|---|---|
| public Date getAgo() Implements abstract groovy. | |
| getFrom | back to summary |
|---|---|
| public BaseDuration. Implements abstract groovy. | |
| minus | back to summary |
|---|---|
| public Duration minus(final Duration rhs) | |
| minus | back to summary |
|---|---|
| public TimeDuration minus(final TimeDuration rhs) | |
| minus | back to summary |
|---|---|
| public DatumDependentDuration minus(final DatumDependentDuration rhs) | |
| minus | back to summary |
|---|---|
| public TimeDatumDependentDuration minus(final TimeDatumDependentDuration rhs) | |
| plus | back to summary |
|---|---|
| public Duration plus(final Duration rhs) | |
| plus | back to summary |
|---|---|
| public Duration plus(final TimeDuration rhs) | |
| plus | back to summary |
|---|---|
| public DatumDependentDuration plus(final DatumDependentDuration rhs) | |
| toMilliseconds | back to summary |
|---|---|
| public long toMilliseconds() Implements abstract groovy. | |