Beispiel #1
0
 def set_time(self, time):
     # type: (int) -> ASN1_TIME
     """
     Set time from seconds since epoch (int).
     """
     assert m2.asn1_time_type_check(self.asn1_time), \
         "'asn1_time' type error'"
     return m2.asn1_time_set(self.asn1_time, time)
Beispiel #2
0
 def set_time(self, time):
     # type: (int) -> ASN1_TIME
     """
     Set time from seconds since epoch (int).
     """
     assert m2.asn1_time_type_check(self.asn1_time), \
         "'asn1_time' type error'"
     return m2.asn1_time_set(self.asn1_time, time)