java.lang.Object | ||
↳ | java.text.Format | |
↳ | humanize.time.PrettyTimeFormat |
Format implementation for PrettyTime.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convenience format method.
| |||||||||||
Convenience format method for precise durations.
| |||||||||||
Gets the format factory.
| |||||||||||
Gets the format name that will be registered.
| |||||||||||
Gets the underlying PrettyTime instance.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.text.Format
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
humanize.spi.FormatProvider
|
Convenience format method.
ref | The date of reference. |
---|---|
then | The future date. |
Convenience format method for precise durations.
ref | The date of reference. |
---|---|
then | The future date. |
precision | The precision to retain in milliseconds. |
Gets the format name that will be registered. If you want to register multiple names for a format then return a String with the names concatenated by a vertical bar character '|'.
Gets the underlying PrettyTime instance.