Class TimeUtil


  • public class TimeUtil
    extends java.lang.Object
    Time related utilities.
    Author:
    K. Benedyczak
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeUtil()  
    • Constructor Detail

      • TimeUtil

        public TimeUtil()
    • Method Detail

      • formatMediumInstant

        public static java.lang.String formatMediumInstant​(java.time.Instant instant)
        Parameters:
        instant -
        Returns:
        instant formated as a string with medium size in the current timezone
      • formatStandardInstant

        public static java.lang.String formatStandardInstant​(java.time.Instant instant)
      • formatStandardInstantWithNano

        public static java.lang.String formatStandardInstantWithNano​(java.time.Instant instant)