Interface TimeFormatter
public interface TimeFormatter
Renders durations and dates in the reader's own language.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longMilliseconds per tick, used to convert the tick counts the config uses. -
Method Summary
Modifier and TypeMethodDescriptionRenders a duration using the player's language.Renders a duration into a pattern that decides which units are shown.formatDate(long date) Renders a point in time using the format configured for the server.
-
Field Details
-
MULTIPLIER
static final long MULTIPLIERMilliseconds per tick, used to convert the tick counts the config uses.- See Also:
-
-
Method Details
-
format
-
format
-
formatDate
Renders a point in time using the format configured for the server.- Parameters:
date- the timestamp in milliseconds- Returns:
- the rendered date
-