Searched refs:ldap_ts_string (Results 1 – 1 of 1) sorted by relevance
608 def FromLdapToTimestamp(self, ldap_ts_string): argument617 if isinstance(ldap_ts_string, bytes):618 ldap_ts_string = ldap_ts_string.decode('utf-8')622 t = time.strptime(ldap_ts_string, '%Y%m%d%H%M%S.0Z')624 t = time.strptime(ldap_ts_string, '%Y%m%d%H%M%SZ')627 m = re.match('([0-9]*)(\.[0-9]*)?(Z)', ldap_ts_string)629 ldap_ts_string = m.group(1) + m.group(3)631 t = time.strptime(ldap_ts_string, '%Y%m%d%H%M%S.0Z')633 t = time.strptime(ldap_ts_string, '%Y%m%d%H%M%SZ')