예제 #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)
예제 #2
0
파일: ASN1.py 프로젝트: appknox/m2crypto
 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)