Class GeneralizedTime

    • Constructor Detail

      • GeneralizedTime

        public GeneralizedTime​(java.time.ZonedDateTime zdt)
      • GeneralizedTime

        public GeneralizedTime​(TLV tlv)
                        throws TLVEncodingException
        Copy constructor to convert PrimitiveTLV to typed object Make sure, that the parent is updated with the new reference
        Parameters:
        tlv - the PrimitiveTLV object
        Throws:
        TLVEncodingException
    • Method Detail

      • getLocalDate

        public java.time.LocalDate getLocalDate()
        Return the first 8 character as local date
        Returns:
        the first 8 character interpreted as basic ISO date (yyyymmdd)
      • getZonedDateTime

        public java.time.ZonedDateTime getZonedDateTime()
        Return the encoded GeneralizedTime
        Returns:
        the encoded date and time
      • toString

        public java.lang.String toString()
        Description copied from class: PrimitiveTLV
        Return Tag of TLV object as string
        Overrides:
        toString in class PrimitiveTLV
        Returns:
        String containing name of TLV object