Home
last modified time | relevance | path

Searched refs:ldap_ts_string (Results 1 – 1 of 1) sorted by relevance

/dports/net/nsscache/nsscache-version-0.44/nss_cache/sources/
H A Dldapsource.py608 def FromLdapToTimestamp(self, ldap_ts_string): argument
617 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')