Пример #1
0
 def set_string(self, string):
     # type: (bytes) -> int
     """
     Set time from UTC string.
     """
     assert m2.asn1_time_type_check(self.asn1_time), \
         "'asn1_time' type error'"
     return m2.asn1_time_set_string(self.asn1_time, string)
Пример #2
0
 def set_string(self, string):
     # type: (bytes) -> int
     """
     Set time from UTC string.
     """
     assert m2.asn1_time_type_check(self.asn1_time), \
         "'asn1_time' type error'"
     return m2.asn1_time_set_string(self.asn1_time, string)