Class DateTypeConverter
java.lang.Object
org.apache.logging.log4j.core.config.plugins.convert.DateTypeConverter
Utility methods for Date classes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <D extends Date>
DfromMillis
(long millis, Class<D> type) Create a Date-related object from a timestamp in millis.
-
Field Details
-
CONSTRUCTORS
-
-
Constructor Details
-
DateTypeConverter
private DateTypeConverter()
-
-
Method Details
-
fromMillis
Create a Date-related object from a timestamp in millis.- Type Parameters:
D
- date class to use- Parameters:
millis
- timestamp in millistype
- date type to use- Returns:
- new instance of D or null if there was an error
-