Class TUtil

    • Method Detail

      • getCurrentTime

        public static Time getCurrentTime()
        Get the curent timestamp from Java and convert to Time format.
        Returns:
        Time
      • decodeGeneralizedTime

        public static Date decodeGeneralizedTime​(String inputString)
                                          throws ParseException
        Convert from raw ldap generalized time format to Date. to decode the string.
        Parameters:
        inputString - containing raw ldap generalized time formatted string.
        Returns:
        converted to Date.
        Throws:
        ParseException
      • encodeGeneralizedTime

        public static String encodeGeneralizedTime​(Date date)
        Convert from java date Date format to raw ldap generalized time format. to encode the string.
        Parameters:
        date - reference to standard java date.
        Returns:
        converted to standardized ldap generalized time format.