public interface DatePrinter
extends org.apache.wicket.util.io.IClusterable
Modifier and Type | Interface and Description |
---|---|
static class |
DatePrinter.EmptyDatePrinter |
static class |
DatePrinter.JavaDatePrinter |
Modifier and Type | Method and Description |
---|---|
DatePrinter |
appendDST()
Append an explanatory string to the printed date if it is in Daylight Saving Time.
|
static DatePrinter |
of(Calendar calendar) |
static DatePrinter |
of(Date date) |
static DatePrinter |
of(Instant instant) |
String |
print()
Print with default style (medium-short).
|
String |
print(FormatStyle style)
Print with specified FormatStyle.
|
String |
print(String pattern)
Print with specified pattern.
|
String print()
String print(String pattern)
pattern
- the pattern to use, not nullString print(FormatStyle style)
style
- the formatter style to obtain, not nullDatePrinter appendDST()
static DatePrinter of(Date date)
static DatePrinter of(Calendar calendar)
static DatePrinter of(Instant instant)
Copyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.