Class TimeUtils


  • public final class TimeUtils
    extends java.lang.Object
    A Utility class that deals with time.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TimeUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String timeInUTC​(long timeInMilliSeconds, java.lang.String format)  
      • Methods inherited from class java.lang.Object

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

      • TimeUtils

        private TimeUtils()
    • Method Detail

      • timeInUTC

        public static java.lang.String timeInUTC​(long timeInMilliSeconds,
                                                 java.lang.String format)
        Parameters:
        timeInMilliSeconds - - The time in milliseconds
        format - - A format that can be used by SimpleDateFormat
        Returns:
        - A formatted string representation of the time in UTC/GMT timezone.