Package | Description |
---|---|
org.alfresco.service.cmr.repository.datatype |
Modifier and Type | Field and Description |
---|---|
static Duration |
Duration.DAY |
static Duration |
Duration.MONTH |
static Duration |
Duration.QUARTER |
static Duration |
Duration.SIX_MONTHS |
static Duration |
Duration.TWO_WEEKS |
static Duration |
Duration.WEEK |
static Duration |
Duration.YEAR |
Modifier and Type | Method and Description |
---|---|
Duration |
Duration.add(Duration add)
Add two durations together
|
Duration |
Duration.divide(int d)
Divide the duration - if year-month drops the day-second part of the duration
|
Duration |
Duration.getDayToYear()
Extract the day to sec part.
|
Duration |
Duration.getYearToMonth()
Extract the year to month part
|
Duration |
Duration.subtract(Duration sub)
Subtract one duration from another
|
Duration |
Duration.unaryMinus()
Negate the duration
|
Modifier and Type | Method and Description |
---|---|
static Date |
Duration.add(Date date,
Duration duration)
Add a duration to a date and return the date plus the specified increment.
|
Duration |
Duration.add(Duration add)
Add two durations together
|
static Date |
Duration.subtract(Date date,
Duration duration)
Subtract a period for a given date
|
Duration |
Duration.subtract(Duration sub)
Subtract one duration from another
|
Copyright © 2005–2020 Alfresco Software. All rights reserved.