BasicEncodingRulesElement.coordinatedUniversalTime

Decodes a https://dlang.org/phobos/std_datetime_date.html#.DateTime, DateTime. The value is just the ASCII character representation of the UTC-formatted timestamp.

An UTC Timestamp looks like:

  • $(MONO 9912312359Z)
  • $(MONO 991231235959+0200)

If the first digit of the two-digit year is 7, 6, 5, 4, 3, 2, 1, or 0, meaning that the date refers to the first 80 years of the century, this assumes we are talking about the 21st century and prepend '20' when creating the ISO Date String. Otherwise, it assumes we are talking about the 20th century, and prepend '19' when creating the string.

  1. DateTime coordinatedUniversalTime [@property getter]
    class BasicEncodingRulesElement
    override @property @system const
    DateTime
    coordinatedUniversalTime
    ()
  2. DateTime coordinatedUniversalTime [@property setter]

Throws

  • ASN1ValueCharactersException if any character is not valid in a $(MONO Visiblestring)
  • DateTimeException if the encoded string cannot be decoded to a DateTime
  • 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

See Also

Meta