* BER/CER/DER decoding, DER encoding
* Basic ASN.1 data types (X.208): BOOLEAN, INTEGER, BIT STRING, OCTET
- STRING, NULL, OBJECT IDENTIFIER, ENUMERATED, all strings, UTCTime,
- GeneralizedTime, CHOICE, ANY, SEQUENCE (OF), SET (OF)
+ STRING, NULL, OBJECT IDENTIFIER, ENUMERATED, all strings, UTCTime (no
+ BER), GeneralizedTime (no BER), CHOICE, ANY, SEQUENCE (OF), SET (OF)
* Size :ref:`constraints <bounds>` checking
* Working with sequences as high level data objects with ability to
(un)marshall them
datetime.datetime(2017, 9, 30, 22, 7, 50)
>>> UTCTime(datetime(2057, 9, 30, 22, 7, 50)).todatetime()
datetime.datetime(1957, 9, 30, 22, 7, 50)
+
+ .. warning::
+
+ No BER encodings are supported. Only DER.
"""
__slots__ = ()
tag_default = tag_encode(23)
>>> t = GeneralizedTime(datetime(2057, 9, 30, 22, 7, 50))
GeneralizedTime GeneralizedTime 2057-09-30T22:07:50
+ .. warning::
+
+ No BER encodings are supported. Only DER.
+
.. warning::
Only microsecond fractions are supported.