Class DateTypeConverter
java.lang.Object
org.apache.logging.log4j.core.config.plugins.convert.DateTypeConverter
Utility methods for Date classes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <D extends Date>
DfromMillis
(long millis, Class<D> type) Create a Date-related object from a timestamp in millis.
-
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
-