- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
- java.lang.Object
-
- org.apache.logging.log4j.core.config.plugins.convert.DateTypeConverter
-
-
Method Summary
Methods
Modifier and Type |
Method and Description |
static <D extends Date> D |
fromMillis(long millis,
Class<D> type)
Create a Date-related object from a timestamp in millis.
|
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
fromMillis
public static <D extends Date> D fromMillis(long millis,
Class<D> type)
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
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
Copyright © 1999-2017 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.