o Sb@sdUdZddlmZmZmZddlmZmZmZedZee d<GdddeZ e ddZ e e d<d S) z$Timezone related utilities for BSON.)datetime timedeltatzinfo)OptionalTupleUnionZEROc@seZdZdZdeeefdeddfddZde eeffdd Z d e e defd d Z d e e defd dZd e e defddZdS) FixedOffsetzFixed offset timezone, in minutes east from UTC. Implementation based from the Python `standard library documentation `_. Defining __getinitargs__ enables pickling / copying. offsetnamereturnNcCs(t|tr ||_nt|d|_||_dS)N)minutes) isinstancer_FixedOffset__offset_FixedOffset__name)selfr r r3/tmp/pip-target-onvjaxws/lib/python/bson/tz_util.py__init__s   zFixedOffset.__init__cCs |j|jfSN)rr)rrrr__getinitargs__&s zFixedOffset.__getinitargs__dtcC|jSr)rrrrrr utcoffset)zFixedOffset.utcoffsetcCrr)rrrrrtzname,rzFixedOffset.tznamecCstSr)rrrrrdst/szFixedOffset.dst)__name__ __module__ __qualname____doc__rfloatrstrrrrrrrrrrrrrr sr UTCutcN) r!rrrtypingrrrr__annotations__r r%rrrrs