| Package | Description |
|---|---|
| org.ocpsoft.prettytime | |
| org.ocpsoft.prettytime.i18n | |
| org.ocpsoft.prettytime.impl | |
| org.ocpsoft.prettytime.units |
| Modifier and Type | Method and Description |
|---|---|
<UNIT extends TimeUnit> |
PrettyTime.getUnit(Class<UNIT> unitType)
|
<UNIT extends TimeUnit> |
PrettyTime.removeUnit(Class<UNIT> unitType)
Removes the mapping for the given
TimeUnit type. |
| Modifier and Type | Method and Description |
|---|---|
TimeUnit |
Duration.getUnit()
|
| Modifier and Type | Method and Description |
|---|---|
List<TimeUnit> |
PrettyTime.clearUnits()
Remove all registered
TimeUnit instances. |
List<TimeUnit> |
PrettyTime.getUnits()
|
| Modifier and Type | Method and Description |
|---|---|
TimeFormat |
PrettyTime.getFormat(TimeUnit unit)
|
PrettyTime |
PrettyTime.registerUnit(TimeUnit unit,
TimeFormat format)
Register the given
TimeUnit and corresponding TimeFormat instance to be used in calculations. |
TimeFormat |
PrettyTime.removeUnit(TimeUnit unit)
Removes the mapping for the given
TimeUnit. |
| Modifier and Type | Method and Description |
|---|---|
TimeFormat |
Resources_uk.getFormatFor(TimeUnit t) |
TimeFormat |
Resources_sk.getFormatFor(TimeUnit t) |
TimeFormat |
Resources_ru.getFormatFor(TimeUnit t) |
TimeFormat |
Resources_ja.getFormatFor(TimeUnit t) |
TimeFormat |
Resources_fi.getFormatFor(TimeUnit t) |
TimeFormat |
Resources_cs.getFormatFor(TimeUnit t) |
| Modifier and Type | Class and Description |
|---|---|
class |
ResourcesTimeUnit |
| Modifier and Type | Method and Description |
|---|---|
TimeUnit |
DurationImpl.getUnit() |
| Modifier and Type | Method and Description |
|---|---|
TimeFormat |
TimeFormatProvider.getFormatFor(TimeUnit t)
Return the appropriate
TimeFormat for the given TimeUnit |
void |
DurationImpl.setUnit(TimeUnit unit) |
| Modifier and Type | Class and Description |
|---|---|
class |
Century |
class |
Day |
class |
Decade |
class |
Hour |
class |
JustNow |
class |
Millennium |
class |
Millisecond |
class |
Minute |
class |
Month |
class |
Second |
class |
Week |
class |
Year |
| Modifier and Type | Method and Description |
|---|---|
int |
TimeUnitComparator.compare(TimeUnit left,
TimeUnit right) |
Copyright © 2015 OCPsoft. All Rights Reserved.