Package | Description |
---|---|
com.apptus.esales.connector.time |
Modifier and Type | Method | Description |
---|---|---|
static Unit |
Unit.forSymbol(String symbol) |
|
Unit |
Duration.precision() |
|
static Unit |
Unit.valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Unit[] |
Unit.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method | Description |
---|---|---|
int |
Duration.amount(Unit unit) |
|
TimePoint |
TimePoint.back(int amount,
Unit unit,
TimeZone tz) |
Equivalent to calling back(Duration.create(amount, unit), tz).
|
TimePoint |
TimePoint.ceil(Unit precision,
TimeZone tz,
Locale locale) |
Round this time point up to the closest whole unit.
|
static Duration |
Duration.create(int amount,
Unit unit) |
|
TimePoint |
TimePoint.floor(Unit precision,
TimeZone tz,
Locale locale) |
Round this time point down to the closest whole unit.
|
TimePoint |
TimePoint.forward(int amount,
Unit unit,
TimeZone tz) |
Equivalent to calling forward(Duration.create(amount, unit), tz).
|
TimePoint |
TimePoint.next(int amount,
Unit unit,
TimeZone tz,
Locale locale) |
Equivalent to calling next(Duration.create(amount, unit), tz, locale).
|
TimePoint |
TimePoint.round(Unit precision,
TimeZone tz,
Locale locale) |
Round this time point to the closest whole unit.
|
Copyright © 2021 Apptus Technologies AB. All rights reserved.