|
Packages that use org.alfresco.service.cmr.repository.datatype.Duration | ||
org.alfresco.service.cmr.repository.datatype |
Fields in org.alfresco.service.cmr.repository.datatype declared as Duration | |
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 |
Methods in org.alfresco.service.cmr.repository.datatype that return Duration | |
Duration.add(Duration add) Add two durations together |
|
Duration.divide(int d) Divide the duration - if year-month drops the day-second part of the duration |
|
Duration.getDayToYear() Extract the day to sec part. |
|
Duration.getYearToMonth() Extract the year to month part |
|
Duration.subtract(Duration sub) Subtract one duration from another |
|
Duration.unaryMinus() Negate the duration |
Methods in org.alfresco.service.cmr.repository.datatype with parameters of type Duration | |
static Date |
Duration.add(Date date, Duration duration) Add a duration to a date and return the date plus the specified increment. |
Duration.add(Duration add) Add two durations together |
|
static Date |
Duration.subtract(Date date, Duration duration) Subtract a period for a given date |
Duration.subtract(Duration sub) Subtract one duration from another |
|