public static class DateTimePrinter.JavaDateTimePrinter extends Object implements DateTimePrinter
DateTimePrinter.EmptyDateTimePrinter, 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.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
of, of, of, toZoneId
public DateTimePrinter appendDST()
DateTimePrinter
appendDST
in interface DateTimePrinter
public String print()
DateTimePrinter
print
in interface DateTimePrinter
public String print(FormatStyle style)
DateTimePrinter
print
in interface DateTimePrinter
style
- the formatter style to obtain, not nullpublic String print(FormatStyle dateStyle, FormatStyle timeStyle)
DateTimePrinter
print
in interface DateTimePrinter
dateStyle
- the formatter style to use for the date part, not nulltimeStyle
- the formatter style to use for the time part, not nullpublic String print(String pattern)
DateTimePrinter
print
in interface DateTimePrinter
pattern
- the pattern to use, not nullCopyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.