Class DateTimePrinter.EmptyDateTimePrinter

    • Constructor Detail

      • EmptyDateTimePrinter

        public EmptyDateTimePrinter()
    • Method Detail

      • print

        public String print​(FormatStyle dateStyle,
                            FormatStyle timeStyle)
        Description copied from interface: DateTimePrinter
        Print with specified FormatStyles. Check here for all possible styles. The dateStyle will be used for the date part, the timeStyle for the time part.
        Specified by:
        print in interface DateTimePrinter
        Parameters:
        dateStyle - the formatter style to use for the date part, not null
        timeStyle - the formatter style to use for the time part, not null
        Returns:
        the date as a string based the both styles