Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TimezoneHelper

        public TimezoneHelper()
    • 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)