CanonicalEncodingRulesElement.generalizedTime

Decodes a DateTime. The value is just the ASCII character representation of the https://www.iso.org/iso-8601-date-and-time-format.html, ISO 8601-formatted timestamp.

An ISO-8601 Timestamp looks like:

  • $(MONO 19851106210627.3)
  • $(MONO 19851106210627.3Z)
  • $(MONO 19851106210627.3-0500)
  1. DateTime generalizedTime [@property getter]
    class CanonicalEncodingRulesElement
    override @property @system const
    DateTime
    generalizedTime
    ()
  2. DateTime generalizedTime [@property setter]

Throws

  • ASN1ValueException if the encoded value did not end with a 'Z' or contained a misplaced or unnecessary decimal point
  • ASN1ValueCharactersException if any character is not valid in a $(MONO Visiblestring)
  • DateTimeException if the encoded string cannot be decoded to a DateTime
  • ASN1ValuePaddingException if the seconds fraction contains trailing zeroes
  • ASN1RecursionException if using constructed form and the element is constructed of too many nested constructed elements
  • ASN1TagClassException if any nested primitives do not share the same tag class as their outer constructed element
  • ASN1TagNumberException if any nested primitives do not share the same tag number as their outer constructed element

Meta