public interface DateTimePrinter
extends org.apache.wicket.util.io.IClusterable
Modifier and Type | Interface and Description |
---|---|
static class |
DateTimePrinter.EmptyDateTimePrinter |
static class |
DateTimePrinter.JavaDateTimePrinter |
Modifier and Type | Method and Description |
---|---|
DateTimePrinter |
appendDST()
Append an explanatory string to the printed date if it is in Daylight Saving Time.
|
static DateTimePrinter |
of(Calendar calendar) |
static DateTimePrinter |
of(Date date) |
static DateTimePrinter |
of(Instant instant) |
String |
print()
Print with default style (medium-short).
|
String |
print(FormatStyle style)
Print with specified FormatStyle.
|
String |
print(FormatStyle dateStyle,
FormatStyle timeStyle)
Print with specified FormatStyles.
|
String |
print(String pattern)
Print with specified pattern.
|
static ZoneId |
toZoneId(TimeZone timeZone) |
String print()
String print(String pattern)
pattern
- the pattern to use, not nullString print(FormatStyle style)
style
- the formatter style to obtain, not nullString print(FormatStyle dateStyle, FormatStyle timeStyle)
dateStyle
- the formatter style to use for the date part, not nulltimeStyle
- the formatter style to use for the time part, not nullDateTimePrinter appendDST()
static DateTimePrinter of(Date date)
static DateTimePrinter of(Calendar calendar)
static DateTimePrinter of(Instant instant)
Copyright © 2007–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.