public interface DateFormatter
DateFormatter.FormatType| Modifier and Type | Interface and Description |
|---|---|
static class |
DateFormatter.FormatType
A predefined date format.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_KEY_PREFIX |
| Modifier and Type | Method and Description |
|---|---|
String |
formatDate(Date date,
DateFormatter.FormatType type)
Format the passed date.
|
String |
formatInstant(Instant instant,
DateFormatter.FormatType type)
Format the passed
Instant. |
String |
getFormatString(String key) |
static final String PROPERTY_KEY_PREFIX
@Nonnull String formatDate(@Nonnull Date date, @Nonnull DateFormatter.FormatType type)
date - the date to format.type - the type of date rendering to generate.@Nonnull String formatInstant(@Nonnull Instant instant, @Nonnull DateFormatter.FormatType type)
Instant.instant - the instant to render.type - the type of date rendering to generate.NullPointerException - if any of the arguments is null.Copyright © 2020 Atlassian. All rights reserved.