Package org.opennms.netmgt.jasper.helper
Class TimezoneHelper
- java.lang.Object
-
- org.opennms.netmgt.jasper.helper.TimezoneHelper
-
public class TimezoneHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description TimezoneHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
formatDate(Date date, java.time.ZoneId zoneId, String pattern)
static long
getRezonedEpoch(Date incomingDate, java.time.ZoneId zoneId)
static String
getUtcOffset(java.time.ZoneId zoneId, Date referenceDate)
static String
now(java.time.ZoneId zoneId, String pattern)
-
-
-
Method Detail
-
getRezonedEpoch
public static long getRezonedEpoch(Date incomingDate, java.time.ZoneId zoneId) throws ParseException
- Throws:
ParseException
-
formatDate
public static String formatDate(Date date, java.time.ZoneId zoneId, String pattern) throws ParseException
- Throws:
ParseException
-
now
public static String now(java.time.ZoneId zoneId, String pattern) throws ParseException
- Throws:
ParseException
-
-