public interface DateTimePrinter extends DatePrinter
Modifier and Type | Interface and Description |
---|---|
static class |
DateTimePrinter.EmptyDateTimePrinter |
static class |
DateTimePrinter.JavaDateTimePrinter |
DatePrinter.EmptyDatePrinter, DatePrinter.JavaDatePrinter
Modifier and Type | Method and Description |
---|---|
DateTimePrinter |
appendDST()
Override appendDST to return a more specific implementation DateTimePrinter and allow proper method chaining.
|
static DateTimePrinter |
of(Calendar calendar) |
static DateTimePrinter |
of(Date date) |
static DateTimePrinter |
of(Instant instant) |
String |
print(FormatStyle dateStyle,
FormatStyle timeStyle)
Print with specified FormatStyles.
|
print, print, print
String 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()
appendDST
in interface DatePrinter
DatePrinter.appendDST()
static DateTimePrinter of(Date date)
of
in interface DatePrinter
static DateTimePrinter of(Calendar calendar)
of
in interface DatePrinter
static DateTimePrinter of(Instant instant)
of
in interface DatePrinter
Copyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.