gIdZddlZddlmZddlmZddlmZejddkrddlmZejZdZ dSGd d eZeedd Zd Z dS) zPython 2 & 3 compatibility. N)datetime timedeltatzinfo)timezonec,tj||SN)rstrptime)datafmts `/home/jenkins/workspace/simtester-sanitize/venv/lib/python3.11/site-packages/asn1tools/compat.pyr r s s+++c&eZdZdZdZdZdZdS)r c||_dSr  _utcoffset)selfoffsets r__init__ztimezone.__init__s $DOOOrc|jSr rrdts r utcoffsetztimezone.utcoffsets ? "rcdS)N-rs rtznameztimezone.tznames3rc tdS)Nrrrs rdstz timezone.dstsQ<< rN)__name__ __module__ __qualname__rrrr!rrrr r sP % % % # # #        rr hoursminutesc|drtj|dd|dd} ddd|d}|t|ddz}|t|ddz}n1#t$r$t d||wxYw|tt||  }ntj||}|S) Nz%z)r+z*time data '{}' does not match format '{}'.r%r) endswithrr intKeyError ValueErrorformatreplacer r)r rdatesignr&r's rr r #s( <<   0$T#2#YCRC99D a((b2s42;///T"##Y/    @GG  <r<s A!!!!!! ,C,,,,,      6     (991a000 1 1Cr