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