public static class DateTimePrinter.JavaDateTimePrinter extends DatePrinter.JavaDatePrinter implements DateTimePrinter
DateTimePrinter.EmptyDateTimePrinter, DateTimePrinter.JavaDateTimePrinter
DatePrinter.EmptyDatePrinter, DatePrinter.JavaDatePrinter
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.
|
print
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
of, of, of
print
public String print()
DatePrinter
print
in interface DatePrinter
print
in class DatePrinter.JavaDatePrinter
public String print(FormatStyle style)
DatePrinter
print
in interface DatePrinter
print
in class DatePrinter.JavaDatePrinter
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()
DatePrinter
appendDST
in interface DatePrinter
appendDST
in interface DateTimePrinter
appendDST
in class DatePrinter.JavaDatePrinter
DatePrinter.appendDST()
Copyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.