\h$ddlmZddlZddlZddlZej ddk(ZereefZ dZ neZ ejjZ GddeddZGddeZy#e $r%ejejdZ YGwxYw) ) namedtupleNc"eZdZdZfdZxZS)ExtTypez'ExtType represents ext type in msgpack.ct|ts tdt|ts tdd|cxkrdkst dt dt t ||||S)Nzcode must be intzdata must be bytesrzcode must be 0~127) isinstanceint TypeErrorbytes ValueErrorsuperr__new__)clscodedata __class__s Z/root/niggaflix-v3/playground/venv/lib/python3.12/site-packages/pip/_vendor/msgpack/ext.pyrzExtType.__new__so$$./ /$&01 1DC12 2 12 2Wc*3d;;)__name__ __module__ __qualname____doc__r __classcell__)rs@rrrs1<rs rto_byteszTimestamp.to_bytesus LLB 1 $%%+dll:F**a/{{40 {{40 ;;ud&6&6 ED rcXt|dz}t|dzdz}t||S)zCreate a Timestamp from posix timestamp in seconds. :param unix_float: Posix timestamp in seconds. :type unix_float: int or float. r )r r)unix_secrrs r from_unixzTimestamp.from_unixs2h!m$8a<501 +..rc:|j|jdz zS)znGet the timestamp as a floating-point value. :returns: posix timestamp :rtype: float geArrr&s rto_unixzTimestamp.to_unixs ||d..444rc&tt|dS)zCreate a Timestamp from posix timestamp in nanoseconds. :param int unix_ns: Posix timestamp in nanoseconds. :rtype: Timestamp r )rdivmod)unix_nss rfrom_unix_nanozTimestamp.from_unix_nanos&%011rc:|jdz|jzS)z~Get the timestamp as a unixtime in nanoseconds. :returns: posix timestamp in nanoseconds :rtype: int r rHr&s r to_unix_nanozTimestamp.to_unix_nanos ||e#d&6&666rctjjdttj|j zS)zlGet the timestamp as a UTC datetime. Python 2 is not supported. :rtype: datetime. r)r)datetime fromtimestamp_utc timedeltarIr&s r to_datetimezTimestamp.to_datetimes:  ..q$7(:L:LLLN;   rcHtj|jS)zuCreate a Timestamp from datetime with tzinfo. Python 2 is not supported. :rtype: Timestamp )rrF timestamp)dts r from_datetimezTimestamp.from_datetimes""2<<>22rN)r)rrrr __slots__r#r'r,r.r1 staticmethodr?rBrFrIrMrOrUrYrrrr"sM*I'0 &6//4*//5227  33rr) collectionsrrQsysr; version_infoPY2r longr!rStimezoneutcAttributeErrorrTrobjectrr\rrrfs"  qQd I DI8  $$