public static class DateTimePrinter.EmptyDateTimePrinter extends Object implements DateTimePrinter
DateTimePrinter.EmptyDateTimePrinter, DateTimePrinter.JavaDateTimePrinter
Constructor and Description |
---|
EmptyDateTimePrinter() |
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 String print()
DateTimePrinter
print
in interface DateTimePrinter
public String print(String pattern)
DateTimePrinter
print
in interface DateTimePrinter
pattern
- the pattern to use, not nullpublic 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 DateTimePrinter appendDST()
DateTimePrinter
appendDST
in interface DateTimePrinter
Copyright © 2007–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.