MCPcopy Index your code
hub / github.com/USArmyResearchLab/Dshell / parse_x509_dtm

Function parse_x509_dtm

dshell/plugins/ssl/tls.py:806–811  ·  view source on GitHub ↗
(dtm)

Source from the content-addressed store, hash-verified

804
805
806def parse_x509_dtm(dtm):
807 if type(dtm) == bytes:
808 dtm = dtm.decode('utf-8')
809 # Fmt: YYYYMMDDhhmmssZ
810 t = time.strptime(dtm, '%Y%m%d%H%M%SZ')
811 return time.strftime('%Y-%m-%d %H:%M:%S', t)
812
813
814def render_x509_object(n):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected