Class InstantFormatter

java.lang.Object
org.apache.logging.log4j.layout.template.json.util.InstantFormatter

public final class InstantFormatter extends Object
A composite Instant formatter trying to employ either FixedDateFormat, FastDateFormat, or DateTimeFormatter in the given order due to performance reasons.

Note that FixedDateFormat and FastDateFormat only support millisecond precision. If the pattern asks for a higher precision, DateTimeFormatter will be employed, which is significantly slower.