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