Whilst we can't say how long a month is without knowing the year and the name of the month, we know how long a second is independent of the date.
This is not 100% true for minutes. Minutes can be 59, 60 or 61 seconds long (due to leap seconds.)
If you ask Duration to convert itself to milliseconds then it will work on the basis of 60 seconds in a minute. If you add or subtract it from a date it will take leap seconds into account.
| Access | Constructor and Description |
|---|---|
| public | |
| public | TimeDuration(final int days, final int hours, final int minutes, final int seconds, final int millis)
|
| Modifier and Type | Method and Description |
|---|---|
| public Date | |
| public BaseDuration. | |
| public Duration | |
| public DatumDependentDuration | |
| public Duration | |
| public DatumDependentDuration |
| TimeDuration | back to summary |
|---|---|
| public TimeDuration(final int hours, final int minutes, final int seconds, final int millis) | |
| TimeDuration | back to summary |
|---|---|
| public TimeDuration(final int days, final int hours, final int minutes, final int seconds, final int millis) | |
| getAgo | back to summary |
|---|---|
| public Date getAgo() Overrides groovy. | |
| getFrom | back to summary |
|---|---|
| public BaseDuration. Overrides groovy. | |
| minus | back to summary |
|---|---|
| public Duration minus(final Duration rhs) Overrides groovy. | |
| minus | back to summary |
|---|---|
| public DatumDependentDuration minus(final DatumDependentDuration rhs) Overrides groovy. | |
| plus | back to summary |
|---|---|
| public Duration plus(final Duration rhs) Overrides groovy. | |
| plus | back to summary |
|---|---|
| public DatumDependentDuration plus(final DatumDependentDuration rhs) Overrides groovy. | |