Class DefaultTimeformatService
- java.lang.Object
-
- org.opennms.features.timeformat.impl.DefaultTimeformatService
-
- All Implemented Interfaces:
TimeformatService
public class DefaultTimeformatService extends java.lang.Object implements TimeformatService
-
-
Constructor Summary
Constructors Constructor Description DefaultTimeformatService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(java.time.Instant instant, java.time.ZoneId zoneId)
java.lang.String
format(java.util.Date date, java.time.ZoneId zoneId)
java.lang.String
getFormatPattern()
-
-
-
Method Detail
-
format
public java.lang.String format(java.time.Instant instant, java.time.ZoneId zoneId)
- Specified by:
format
in interfaceTimeformatService
-
format
public java.lang.String format(java.util.Date date, java.time.ZoneId zoneId)
- Specified by:
format
in interfaceTimeformatService
-
getFormatPattern
public java.lang.String getFormatPattern()
- Specified by:
getFormatPattern
in interfaceTimeformatService
-
-