+
    iu c            	       s   R t R7tRt^ RIt^ RIt^ RIt^ RIH	t
 R	 tR
 t^tRtRt. R9OtR8.t^ t]R,           F  t]P)                  ]4       ]],          tK  	  AAR tR tR tR tR t]! R4      t]! ^e4      t]! ^4      tR t. R:Ot. R;OtR t R<R lt!R=R lt"Rs#R t$R t%R t&R t'R t(. R>Ot)R t*R t+R t,R  t-R! t.R" t/R# t0R$ t1R% t2 ! R& R4      t3]3! R?4      ]3n4        ]3! R'^^;^;R(R)7      ]3n5        ]3! ^R*7      ]3n6         ! R+ R4      t7]7t8]7! ^^^4      ]7n4        ]7! R^^4      ]7n5        ]3! ^R,7      ]7n6         ! R- R4      t9 ! R. R/]:4      t;];t<A;]9t= ! R0 R4      t]t>]! ^ ^ ^ 4      ]n4        ]! ^^;^;R(4      ]n5        ]3! ^R*7      ]n6         ! R1 R]74      t?]?! ^^^4      ]?n4        ]?! R^^^^;^;R(4      ]?n5        ]3! ^R*7      ]?n6        R2 t@ ! R3 R]94      tA]AP                  ]3! ^ 4      4      ;tC]AnD        ]AP                  ]3! ^^;R47      ) 4      ]An4        ]AP                  ]3! ^^;R47      4      ]An5        ]?! R5^^]AP                  R67      tER# )@z2Pure Python implementation of the datetime module.datedatetimetime	timedeltatimezonetzinfoN)indexc                 s&    W8X  d   ^ # W8  d   ^# R# )     )xy   &&$/usr/lib64/python3.14/_pydatetime.py_cmpr      s    1.A.B.    c                 sD    V P                   P                  pVR 8X  d   R# R# )r   z	datetime. )	__class__
__module__)selfZmodule_name   & r   _get_class_moduler      s    ..++Kj r   i'  i۹7    NNc                sj    V ^,          ^ 8H  ;'       d!    V ^d,          ^ 8g  ;'       g    V R,          ^ 8H  # )zyear -> 1 if leap year, else 0.  r	   )year   &r   _is_leapr   /   s0    !8q=AAdSjAo@@qAr   c                sz    V ^,
          pVR,          V^,          ,           V^d,          ,
          VR,          ,           # )z2year -> number of days before January 1st of year.m  r   r	   )r   r   r   r   _days_before_yearr   3   s/    qAS51a4<!S& 1c6))r   c                sP    V^8X  d   \        V 4      '       d   ^# \        V,          # )z9year, month -> number of days in that month in that year.)r   _DAYS_IN_MONTHr   monthr   r   _days_in_monthr!   8   s!     zhtnn%  r   c                sV    \         V,          V^8  ;'       d    \        V 4      ,           # )zCyear, month -> number of days in year preceding first day of month.)_DAYS_BEFORE_MONTHr   r   r   r   _days_before_monthr#   ?   s$     e$	(D(DhtnEEr   c                s\    \        W4      p\        V 4      \        W4      ,           V,           # )z>year, month, day -> ordinal, considering 01-Jan-0001 as day 1.)r!   r   r#   r   r    daydim   &&& r   _ymd2ordr(   D   s0     
%Cd#t+, r   i  c                sl   V ^,          p \        V \        4      w  rVR,          ^,           p\        V \        4      w  r0\        V \        4      w  r@\        V R4      w  rPW#^d,          V^,          ,           V,           ,          pV^8X  g   V^8X  d   V^,
          ^^3# V^8H  ;'       d    V^8g  ;'       g    V^8H  pV ^2,           ^,	          p\        V,          V^8  ;'       d    T,           pW8  d2   V^,          pT\
        V,          V^8H  ;'       d    T,           ,          pW,          p W'V ^,           3# )z@ordinal -> (year, month, day), considering 01-Jan-0001 as day 1.r   r   )divmod_DI400Y_DI100Y_DI4Yr"   r   )	nZn400r   Zn100Zn4Zn1Zleapyearr    Z	preceding	   &        r   _ord2ymdr/   ]   s   . FAQ GD#:>D Q GD 1eEB 1cNEB3Ja"$$D	Qw$!)Avr2~ Qw22B"H11	HVME"5)UQY-C-C8DI}
^E*eqj.E.EXFF	NA
 !r   c                 s    \        WV4      ^,           ^,          p\        W4      V,           p\        P                  ! WW#WEWxV3	4      # )   )r(   r#   _timeZstruct_time)	r   mdhhmmssZdstflagZwdayZdnums	   &&&&&&&  r   _build_struct_timer7      sC    Q1!Q&Da#a'DaA24wGHHr   c           
      s    R RRRRRRRRR	/pVR
8X  d   V'       d   RMRpMVR8X  d
   VR,          p WT,          pVP                  WW#4      #   \         d    \        R4      hi ; i)hoursz{:02d}minutesz{:02d}:{:02d}secondsz{:02d}:{:02d}:{:02d}millisecondsz{:02d}:{:02d}:{:02d}.{:03d}microsecondsz{:02d}:{:02d}:{:02d}.{:06d}auto  zUnknown timespec value)formatZKeyError
ValueError)r4   r5   r6   ustimespecZspecsfmts   &&&&&  r   _format_timerD      s    ?)55E 6%'>Y	^	#
t*o zz""))  31223s   A A#c                 s   R pV e   V P                   ^ 8  d   RpV ) p MRp\        V \        ^R7      4      w  rE\        V\        ^R7      4      w  rVVRW4W3,          ,          pV'       g   VP                  '       dH   VRWP                  3,          ,          pVP                  '       d   VRVP                  ,          ,          pV# )r   -+r8   r9   z%s%02d%s%02dz%s%02d.%06d)daysr)   r   r<   r:   )offsepssignr4   r5   r6      &&     r   _format_offsetrP      s    
A
88a<D$CDYQ/0Ia01	^t111S**---AWr..Hr   c                  s    \         f"    \        P                  ! RR4      R8g  s \         # \         #   \         d    Rs  \         # i ; i)Nz%YZ0099T)	ic   r   r   r   r   r   r   r   r   )_normalize_centuryr1   strftimer@   r	   r   r   _need_normalize_centuryrS      sQ    !	&t%ABfL    	&!%	&s   0 AAc                 s   R pR pR pR p. pVP                   p^ \        V4      rW8  Ed   W,          pV	^,          p	VR8X  Edg   W8  EdU   W,          pV	^,          p	VR8X  d,   Vf   R\        V R^ 4      ,          pVP                  V4       Kj  VR8X  dH   Vf1   \        V R4      '       d   \	        V P                  4       RR7      pMRpVP                  V4       K  VR	8X  d   W8  d|   W,          pV	^,          p	VR8X  dI   Vf1   \        V R4      '       d   \	        V P                  4       R	R7      pMRpVP                  V4       EK%  V! R4       V! V4       V! V4       EK@  EKC  VR
8X  dS   Vf;   Rp\        V R4      '       d'   V P                  4       pVe   VP                  RR4      pVP                  V4       EK  VR9   g   VR9   d   V P                  R8  d   \        4       '       d   VR8X  d"   \        \        P                  ! RV4      4      pMV P                  pVR8X  d"   V! RP                  V^d,          4      4       EK'  V! RP                  V4      4       VR8X  d!   V! RP                  ! VR,          !  4       EKe  EKh  V! R4       V! V4       EK{  V! R4       EK  V! V4       EK  RP                  V4      p\        P                  ! Wr4      # )NZ%Zfz%06dmicrosecondZz	utcoffsetr   rL   :Ztznamez%%ZYGZFCr>   ZGz%GZCz{:02}z{:04}ZFz-{:02}-{:02}:r      N)appendlengetattrZhasattrrP   rU   rY   replacer   rS   intr1   rR   r?   join)objectr?   	timetupleZfreplaceZzreplaceZcolonzreplaceZZreplaceZ	newformatZpushZir-   ZchZch2rM   r   s   &&&            r   _wrap_strftimerc      sw   HHMH IDc&kq
%Y	Q9uYQ9'#)GF4A1-F $F$$X.3Y'"6;77'5f6F6F6Hb'QH')H$$X.3Yu$iQ#:,4#*6;#?#?4B6CSCSCU[^4_M46M%,,]; I H I  3Y'#%"6844 &A }+,99S$+?$$X. TzR4Zd*/F/H/HSy"5>>$	#BC%{{SyW^^DCK89W^^D129 !6!6	#!GH % IHS	H	"I>>)//r   c                 s    V R 9   # )Z
0123456789r	   )Zcr   r   _is_ascii_digitrd   *  s    r   c                 s   \        V 4      pV^8X  d   ^# RpRpV ^,          V8X  do   V ^,          V8X  d_   V^8  d   \        R4      hV^8  dD   V ^,          V8X  d6   V^	8X  d   \        R4      hV^
8  d   \        V ^
,          4      '       d   ^# ^
# ^# ^
# V ^,          V8X  dG   ^pWA8  d$   \        W,          4      '       g   MV^,          pK)  V^	8  d   V# V^,          ^ 8X  d   ^# ^# ^# )   rE   WzInvalid ISO string)r\   r@   rd   )dtstrZ	len_dtstrZdate_separatorZweek_indicatorZidx   &    r   "_find_isoformat_datetime_separatorri   -  s    E
IA~ NNQx>!8~%1} !5661}q^!;>$%9::r>oeBi&@&@   8~%C/&uz22qQw
Qw!| r   c                 s4   \        V R ,          4      pV ^,          R8H  p^V,           pWV^,            R8X  d   V^,          p\        WV^,            4      pV^,          p^p\        V 4      V8  d;   WV^,            R8H  V8w  d   \        R4      hW2,          p\        WV^,            4      p\        \	        WV4      4      # \        WV^,            4      pV^,          pWV^,            R8H  V8w  d   \        R4      hW2,          p\        WV^,            4      pWV.# ):r   i   NrE   rf   z"Inconsistent use of dash separator)r_   r\   r@   Zlist_isoweek_to_gregorian)rg   r   has_sepposZweeknoZdaynor    r%      &       r   _parse_isoformat_datern   f  s     uSz?DAh#oG
g+CqS qUsQw'(qu:#'"c)g5 !EFFNC#'*+E)$>??EcAg&'qcAg#%'1ABB%C!G$%S!!r   c                 s   \        V 4      p. ROp^ p\        ^ ^4       F  pW,
          ^8  d   \        R4      h\        WV^,            4      W$&   V^,          pWV^,            pV^ 8X  d   VR8H  pV'       d   V^8  d    M-X'       d   VR8w  d   \        RV,          4      hW6,          pK  	  W18  d   W,          R9  d   \        R4      hV^,          p\	        \        \        WR 4      4      '       g   \        R4      hW,
          pV^8  d   ^pMTp\        WW8,            4      V^&   V^8  d(   V^;;,          \        V^,
          ,          ,          uu&   V# )	r   zIncomplete time componentrW   zInvalid time separator: %cz.,zInvalid microsecond separatorNzNon-digit values in fraction)r   r   r   r   )r\   Zranger@   r_   allmaprd   _FRACTION_CORRECTION)	tstrlen_str
time_compsrl   ZcompZ	next_charrk   Zlen_remainderZto_parser.   r   _parse_hh_mm_ss_ffru     s@   $iGJ
CaMQ899tA/
qSUO	193&GDAIyC'9IEFF% ( }9D <==1HCs?DJ788 !?@@#MM!(#, 89JqM!|1!5hqj!AAr   c                 s2   \        V 4      pV^8  d   \        R4      hV P                  R4      ^,           ;'       g9    V P                  R4      ^,           ;'       g    V P                  R4      ^,           pV^ 8  d   V RV^,
           MT p\        V4      pVw  rVrxRp	Rp
V^8X  dT   \        ;QJ d#    R VR,           4       F  '       d   K   RM	  R	M! R VR,           4       4      '       d
   ^ pWT^ &   R	p	MR	p
RpW!8X  d    V R,          R8X  d   \
        P                  pMV^ 8  d   WR p\        V4      R9   g   W^,
          ,          R8X  d   \        R
4      h\        V4      p\        ;QJ d    R V 4       F  '       d   K   RM	  R	M! R V 4       4      '       d   \
        P                  pMTW^,
          ,          R8X  d   RM^p\        V^ ,          V^,          V^,          V^,          R7      p\        W,          4      pVP                  V4       WIV
3# )   zIsoformat time too shortrE   rF   rX   NFc              3   *   "   T F	  q^ 8H  x  K  	  R# 5ir   Nr	   ).0Z	time_compr   r   	<genexpr>(_parse_isoformat_time.<locals>.<genexpr>  s     >~)A~~   r   TzMalformed time zone stringc              3   rw   rx   r	   )ry   r
   r   r   rz   r{     s     (x!Avxr|   r8   r9   r:   r<   r   )r   r   rZ   )	r\   r@   Zfindru   ro   r   utcr   r[   )rr   rs   Ztz_posZtimestrrt   hourminutesecondrT   became_next_dayerror_from_componentsZtziZtzstrZtz_compsZtzsignZtds   &               r   _parse_isoformat_timer     s   $iG{344 iinq LLDIIcNQ$6LL$))C.1:LF!'!d9F1HoG#G,J(2%D&O!
3>z"~>333>z"~>>>D qM"O$(!
CT"X_ll	!W u:"d!8n&;9::%e,3(x(333(x(((,,C
+s2RF!hqk#+A;Xa[JB 6;'Cc(===r   c                 s   \         T u;8:  d   \        8:  g   M \        R \          R\         RV  24      h^ Tu;8  d   ^58  gW   M RpV^58X  d6   \        V ^^4      ^,          pV^8X  g   V^8X  d   \	        V 4      '       d   RpV'       d   \        RV 24      h^ Tu;8  d   ^8  g   M \        RV R24      hV^,
          ^,          V^,
          ,           p\        V 4      pWe,           p\        V4      # )year must be in .., not TFzInvalid week: zInvalid weekday: z (range is [1, 7]))MINYEARMAXYEARr@   r(   r   _isoweek1mondayr/   )r   weekr%   Zout_of_rangeZfirst_weekdayZ
day_offsetZday_1Zord_days   &&&     r   rj   rj     s    d%g%+G9BwivdVLMMt=b=2: %T1a014M"}'9'/~~$~dV455s;Q;,SE1CDEE (a37+J D!E GGr   c                     V e;   \        V \        4      '       g#   \        R\        V 4      P                  : 24      hR # R # )Nz0tzinfo.tzname() must return None or string, not )
isinstancestr	TypeErrortype__name__)namer   r   _check_tznamer     sC    
4 5 5 #Dz2257 8 	8 !6r   c                 s    Vf   R # \        V\        4      '       g&   \        RV  R\        V4      P                  : 24      h\        ^4      ) Tu;8  d   \        ^4      8  g   M \        RV: 24      hR # )Nztzinfo.z&() must return None or timedelta, not ^offset must be a timedelta strictly between -timedelta(hours=24) and timedelta(hours=24), not )r   r   r   r   r   r@   )r   offsetr   r   _check_utc_offsetr   "  s    ~fi(('$ (--1&\-B-B,EG H 	HaL=60IaL0 55;J@ A 	A 1r   c           
      sZ   \        V 4      p \        V4      p\        V4      p\        T u;8:  d   \        8:  g   M \        R \         R\         RV  24      h^Tu;8:  d   ^8:  g   M \        RV 24      h\	        W4      p^Tu;8:  d   V8:  g   M \        RV RV RV RV  24      hWV3# )r   r   r   zmonth must be in 1..12, not zday z must be in range 1..z for month z	 in year )_indexr   r   r@   r!   r$   r'   r   _check_date_fieldsr   .  s    $<D5ME
+Cd%g%+G9BwivdVLMM7w?@@

%C?s?4u$9#k%PYZ^Y_`aar   c                 s   \        V 4      p \        V4      p\        V4      p\        V4      p^ T u;8:  d   ^8:  g   M \        RV  24      h^ Tu;8:  d   ^;8:  g   M \        RV 24      h^ Tu;8:  d   ^;8:  g   M \        RV 24      h^ Tu;8:  d   R8:  g   M \        RV 24      hVR9  d   \        RV 24      hWW#V3# )r   zhour must be in 0..23, not zminute must be in 0..59, not zsecond must be in 0..59, not ?B z&microsecond must be in 0..999999, not z fold must be either 0 or 1, not )r   r   )r   r@   )r   r   r   rT   folds   &&&&&r   _check_time_fieldsr   ;  s    $<DF^FF^F%K??6tf=>>"8ABB"8ABB%v%A+OPP6;D6BCCd22r   c                 r   )Nz:tzinfo argument must be None or of a tzinfo subclass, not )r   r   r   r   r   )tzr   r   _check_tzinfo_argr   L  sA    	~jV448$$')
 	
 5~r   c                s    \        W4      w  r#V^,          pV^ 8  d   W18  MW18  pV'       g   W18X  d   V^,          ^8X  d
   V^,          pV# )zdivide a by b and round result to the nearest integer

When the ratio is exactly half-way between two integers,
the even integer is returned.
)r)   )abqrZgreater_than_half   &&   r   _divide_and_roundr   S  sK     !<DA FA!"QAEAFq1uz	QHr   c                   s   a  ] tR tRt o RtR"tR#R ltR tR tR t	]
R 4       t]
R 4       t]
R	 4       tR
 t]tR tR tR tR tR tR t]tR tR tR tR tR tR tR tR tR tR t R t!R t"R t#R t$R t%R t&V t'R!# )$r   ig  a  Represent the difference between two datetime objects.

Supported operators:

- add, subtract timedelta
- unary plus, minus, abs
- compare to timedelta
- multiply, divide by int

In addition, datetime supports subtraction of two datetime objects
returning a timedelta, and addition or subtraction of a datetime
and a timedelta giving a datetime.

Representation: (days, seconds, microseconds).
c           	     s>   R V3RV3RV3RV3RV3RV3RV33 FE  w  r\        V	\        \        34      '       d   K#  \        RV R\	        V	4      P
                   24      h	  ^ ;p
;rW^,          ,          pW%^<,          VR	,          ,           ,          pW4R
,          ,          p\        V\        4      '       dO   \        P                  ! V4      w  r\        P                  ! VR,          4      w  r\        V4      p\        V4      p
MRpTp
\        V\        4      '       d/   \        P                  ! V4      w  pp\        V4      pVV,          pMTp\        VR4      w  rW,          p
V\        V4      ,          pVR,          p\        V\        4      '       d@   \        VV,           4      p\        VR4      w  r#\        VR4      w  rW,          p
W,          pMI\        V4      p\        VR4      w  r#\        VR4      w  rW,          p
W,          p\        VV,           4      p\        VR4      w  r,W,          p\        VR4      w  rW,          p
\        V
4      R8  d   \        RV
,          4      h\        P                  V 4      pV
Vn        VVn        VVn        RVn        V# )rJ   r:   r<   r;   r9   r8   weekszunsupported type for timedelta z component:   r>   g            .A@B ɚ;z$timedelta # of days is too large: %dg     @Q r   )r   r_   floatr   r   r   _mathmodfr)   roundabsOverflowErrorra   __new___days_seconds_microseconds	_hashcode)clsrJ   r:   r<   r;   r9   r8   r   r   Zvaluer3   rM   rA   ZdayfracZdaysecondsfracZdaysecondswholeZsecondsfracZusdoubler   s   &&&&&&&&           r   r   Ztimedelta.__new__}  s    TN \*\* ee
KD ec5\225dV<UH\H\G]^ 
  A 	a2:d
**T)) dE""!JJt,MG.3jjI9N.O+NO$AD	A NA gu%%#(::g#6 K'lG>)K )K w0			S\
 $ lE** !89L$*<$A!G"7G4MDIALA|,L$*<$A!G"7G4MDIALA !89L \73	G$		 q6I F JKK~~c"
r   c                s   . pV P                   '       d#   VP                  R V P                   ,          4       V P                  '       d#   VP                  RV P                  ,          4       V P                  '       d#   VP                  RV P                  ,          4       V'       g   VP                  R4       \	        V 4      : V P
                  P                  : RRP                  V4      : R2# )zdays=%dz
seconds=%dzmicroseconds=%dZ0(, ))r   r[   r   r   r   r   __qualname__r`   )r   argsr   r   __repr__Ztimedelta.__repr__  s    :::KK	DJJ./===KKt}}45KK)D,>,>>?KK.t4!^^88!YYt_. 	.r   c                s*   \        V P                  ^<4      w  r\        V^<4      w  r1RW1V3,          pV P                  '       d$   R pRV! V P                  4      ,          V,           pV P                  '       d   VRV P                  ,          ,           pV# )i<   z%d:%02d:%02dc                 sJ    T \        V 4      ^8g  ;'       d    R;'       g    R3# )r   rM   r   )r   )r-   r   r   pluralZ!timedelta.__str__.<locals>.plural  s%    #a&A+--#3333r   z
%d day%s, rI   )r)   r   r   r   )r   r5   r6   r4   rM   r      &     r   __str__Ztimedelta.__str__  s{    r*Bbb\):::4tzz 22a7AGd0000Ar   c                s    V P                   R,          V P                  ,           R,          V P                  ,           R,          # )zTotal seconds in the duration.r   r   )rJ   r:   r<   r   r   r   total_secondsZtimedelta.total_seconds  s7    U"T\\1U:!!"%*+ 	+r   c                    V P                   # rJ   r   r   r   r   rJ   Ztimedelta.days       zzr   c                r   r:   )r   r   r   r   r:   Ztimedelta.seconds  s     }}r   c                r   r<   )r   r   r   r   r<   Ztimedelta.microseconds  s     !!!r   c                s    \        V\        4      '       d_   \        V P                  VP                  ,           V P                  VP                  ,           V P                  VP                  ,           4      # \
        # Nr   r   r   r   r   NotImplementedr   otherr   r   __add__Ztimedelta.__add__  [    eY'' TZZ%++5!]]U^^;!//%2E2EEG G r   c                s    \        V\        4      '       d_   \        V P                  VP                  ,
          V P                  VP                  ,
          V P                  VP                  ,
          4      # \
        # r   r   r   r   r   __sub__Ztimedelta.__sub__(  r   r   c                sN    \        V\        4      '       d   V ) V,           # \        # r   )r   r   r   r   r   r   __rsub__Ztimedelta.__rsub__1  s!    eY''55= r   c                s^    \        V P                  ) V P                  ) V P                  ) 4      # r   )r   r   r   r   r   r   r   __neg__Ztimedelta.__neg__6  s.     $**--,,,. 	.r   c                s    V # r   r	   r   r   r   __pos__Ztimedelta.__pos__=  s    r   c                s.    V P                   ^ 8  d   V ) # V # r   r   r   r   r   __abs__Ztimedelta.__abs__@  s    ::>5LKr   c                sd   \        V\        4      '       dA   \        V P                  V,          V P                  V,          V P
                  V,          4      # \        V\        4      '       d@   V P                  4       pVP                  4       w  r4\        ^ ^ \        W#,          V4      4      # \        # r   )r   r_   r   r   r   r   r   _to_microsecondsas_integer_ratior   r   r   r   usecr   r   r   r   __mul__Ztimedelta.__mul__F  s    eS!! TZZ%/!]]U2!//%79 9 eU##((*D))+DAQ#4TXq#ABBr   c                sz    V P                   R,          V P                  ,           R,          V P                  ,           # )i   r   r   r   r   r   r   r   r   r   Ztimedelta._to_microsecondsU  s/    w'$--77B""# 	$r   c                s   \        V\        \        34      '       g   \        # V P	                  4       p\        V\        4      '       d   W!P	                  4       ,          # \        V\        4      '       d   \        ^ ^ W!,          4      # R# rx   )r   r_   r   r   r   )r   r   r      && r   __floordiv__Ztimedelta.__floordiv__Y  sj    %#y!122!!$$&eY''11333eS!!Q4=11 "r   c                s   \        V\        \        \        34      '       g   \        # V P                  4       p\        V\        4      '       d   W!P                  4       ,          # \        V\        4      '       d   \        ^ ^ \        W!4      4      # \        V\        4      '       d0   VP                  4       w  r4\        ^ ^ \        WB,          V4      4      # R# rx   )r   r_   r   r   r   r   r   r   r   r   r   __truediv__Ztimedelta.__truediv__b  s    %#ui!899!!$$&eY''00222eS!!Q#4T#ABBeU##))+DAQ#4QXq#ABB $r   c                s    \        V\        4      '       d3   V P                  4       VP                  4       ,          p\        ^ ^ V4      # \        # r   )r   r   r   r   )r   r   r   r   r   __mod__Ztimedelta.__mod__n  s@    eY''%%'%*@*@*BBAQ1%%r   c                s    \        V\        4      '       d:   \        V P                  4       VP                  4       4      w  r#V\        ^ ^ V4      3# \        # r   )r   r   r)   r   r   )r   r   r   r      &&  r   
__divmod__Ztimedelta.__divmod__t  sL    eY''$//10024DAi1a(((r   c                sb    \        V\        4      '       d   V P                  V4      ^ 8H  # \        # r   r   r   r   r   r   r   r   __eq__Ztimedelta.__eq__}  )    eY''99U#q((!!r   c                b    \        V\        4      '       d   V P                  V4      ^ 8*  # \        # r   r   r   r   r   __le__Ztimedelta.__le__  r   r   c                b    \        V\        4      '       d   V P                  V4      ^ 8  # \        # r   r   r   r   r   __lt__Ztimedelta.__lt__  )    eY''99U#a''!!r   c                b    \        V\        4      '       d   V P                  V4      ^ 8  # \        # r   r   r   r   r   __ge__Ztimedelta.__ge__  r   r   c                b    \        V\        4      '       d   V P                  V4      ^ 8  # \        # r   r   r   r   r   __gt__Ztimedelta.__gt__  r   r   c                sR    \        V P                  4       VP                  4       4      # r   )r   	_getstater   r   r   r   Ztimedelta._cmp  s    DNN$eoo&788r   c                x    V P                   R8X  d   \        V P                  4       4      V n         V P                   # )r   r   r   hashr   r   r   r   __hash__Ztimedelta.__hash__  s+    >>R!$.."23DN~~r   c                s|    V P                   ^ 8g  ;'       g'    V P                  ^ 8g  ;'       g    V P                  ^ 8g  # r   r   r   r   r   __bool__Ztimedelta.__bool__  s@    

a ( ("( (""a'	)r   c                sH    V P                   V P                  V P                  3# r   r   r   r   r   r   Ztimedelta._getstate  s    

DMM4+=+=>>r   c                :    V P                   V P                  4       3# r   r   r   r   r   r   
__reduce__Ztimedelta.__reduce__       011r   )r   r   r   r   N)r   r   r   r   )r   r   r   r   r   r   r   )(r   r   r   __firstlineno____doc__	__slots__r   r   r   r   propertyrJ   r:   r<   r   __radd__r   r   r   r   r   r   Z__rmul__r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   __static_attributes____classdictcell____classdict__   @r   r   r   g  s     & BIob.
+     " " H
. H$2
C"""""9
)?2 2r   r   r   )rJ   r8   r9   r:   r<   r   c                   s\  a  ] tR tRt o RtR&tR'R lt]R 4       t]R 4       t	]R 4       t
]R 4       t]R	 4       t]R
 4       tR tR tR tR tR t]t]R 4       t]R 4       t]R 4       tR tR tR(R lt]tR tR tR tR tR t R t!R t"R t#]#t$R t%R t&R  t'R! t(R" t)R# t*R$ t+R%t,V t-R# ))r    i  a  Concrete date type.

Constructors:

__new__()
fromtimestamp()
today()
fromordinal()
strptime()

Operators:

__repr__, __str__
__eq__, __le__, __lt__, __ge__, __gt__, __hash__
__add__, __radd__, __sub__ (add/radd only with timedelta arg)

Methods:

timetuple()
toordinal()
weekday()
isoweekday(), isocalendar(), isoformat()
ctime()
strftime()

Properties (readonly):
year, month, day
Nc                s   Vf   \        V\        \        34      '       d   \        V4      ^8X  dz   ^\	        VR,          4      u;8:  d   ^8:  d[   M MW\        V\        4      '       d    VP                  R4      p\        P                  V 4      pVP                  V4       RVn        V# \        WV4      w  rp\        P                  V 4      pWn        W$n        W4n        RVn        V#   \         d    \        R4      hi ; i)z>Constructor.

Arguments:

year, month, day (required, base 1)
rv   rZ   Nlatin1znFailed to encode latin1 string when unpickling a date object. pickle.load(data, encoding='latin1') is assumed.r   )r   bytesr   r\   ordencodeUnicodeEncodeErrorr@   ra   r   _date__setstater   r   _year_month_day)r   r   r    r%   r   s   &&&& r   r   Zdate.__new__  s     MteS\**s4yA~T#Y%2%$$$L;;x0D >>#&DOOD!DNK-d3?S~~c"
	! * L$KL LLs   *C) )D c           	     sj    Vf   \        R4      h\        P                  ! V4      w	  r#rErgrp
V ! W#V4      # )z;Construct a date from a POSIX timestamp (like time.time()).z5'NoneType' object cannot be interpreted as an integer)r   r1   	localtime)r   tr   r2   r3   r4   r5   r6   weekdayjdaydsts   &&         r   fromtimestampZdate.fromtimestamp  s:     9STT27//!2D/aRWC1|r   c                sN    \         P                  ! 4       pV P                  V4      # )z"Construct a date from time.time().r1   r   r  )r   r  r   r   todayZ
date.today  s      JJL  ##r   c                s0    \        V4      w  r#pV ! W#V4      # )zConstruct a date from a proleptic Gregorian ordinal.

January 1 of year 1 is day 1.  Only the year, month and day are
non-zero in the result.
)r/   )r   r-   r   r2   r3   r   r   fromordinalZdate.fromordinal  s     1+a1|r   c                s    \        V\        4      '       g   \        R4      hVP                  4       '       g   \	        R4      h\        V4      R9  d   \	        RV: 24      h V ! \        V4      !  #   \         d    \	        RT: 24      hi ; i)z2Construct a date from a string in ISO 8601 format.zArgument must be a strzArgument must be an ASCII strInvalid isoformat string: )re   i   
   )r   r   r   Zisasciir@   r\   rn   	Exception)r   date_stringr   r   fromisoformatZdate.fromisoformat  s     +s++455""$$<=={:-9+IJJ	K-k:;; 	K9+IJJ	Ks   #A2 2Bc                s"    V ! \        WV4      !  # )ztConstruct a date from the ISO year, week number and weekday.

This is the inverse of the date.isocalendar() function)rj   )r   r   r   r%      &&&&r   fromisocalendarZdate.fromisocalendar!  s    
 )$c:;;r   c                .    ^ RI pVP                  WV4      # )zIParse a date string according to the given format (like time.strptime()).N)	_strptimeZ_strptime_datetime_dater   r  r?   r  r'   r   strptimeZdate.strptime(       	006JJr   c                s    R\        V 4      V P                  P                  V P                  V P                  V P
                  3,          # )zhConvert to formal string, for repr().

>>> d = date(2010, 1, 1)
>>> repr(d)
'datetime.date(2010, 1, 1)'
z%s%s(%d, %d, %d))r   r   r   r  r  r	  r   r   r   r   Zdate.__repr__0  s@     "%6t%<%)^^%@%@%)ZZ%)[[%)YY	%0 0 	0r   c                s    V P                  4       ^,          ;'       g    ^pR\        V,          \        V P                  ,          V P                  V P
                  3,          # )Return ctime() style string.z%s %s %2d 00:00:00 %04d)	toordinal	_DAYNAMES_MONTHNAMESr  r	  r  r   r  r   r   ctimeZ
date.ctimeB  sN    .."Q&++!(g$IItzz,# # 	#r   c                s6    \        WV P                  4       4      # )z9
Format using strftime().

Example: "%d/%m/%Y, %H:%M:%S"
)rc   rb   )r   r?   r   r   rR   Zdate.strftimeJ  s     dDNN,<==r   c                    \        V\        4      '       g&   \        R \        V4      P                  ,          4      h\        V4      ^ 8w  d   V P                  V4      # \        V 4      # zmust be str, not %sr   r   r   r   r   r\   rR   r   rC   r   r   
__format__Zdate.__format__R  N    #s##1DI4F4FFGGs8q===%%4yr   c                sV    RV P                   V P                  V P                  3,          # )zReturn the date formatted according to ISO.

This is 'YYYY-MM-DD'.

References:
- https://www.w3.org/TR/NOTE-datetime
- https://www.cl.cam.ac.uk/~mgk25/iso-time.html
z%04d-%02d-%02d)r  r  r	  r   r   r   	isoformatZdate.isoformatY  s"      4::t{{DII"FFFr   c                r   )zyear (1-9999))r  r   r   r   r   Z	date.yearg  r   r   c                r   )zmonth (1-12))r  r   r   r   r    Z
date.monthl  s     {{r   c                r   )z
day (1-31))r	  r   r   r   r%   Zdate.dayq  s     yyr   c           	     s`    \        V P                  V P                  V P                  ^ ^ ^ R4      # z9Return local time tuple compatible with time.localtime().r   )r7   r  r  r	  r   r   r   rb   Zdate.timetupley  s*    !$**dkk499"#Q2/ 	/r   c                X    \        V P                  V P                  V P                  4      # )zReturn proleptic Gregorian ordinal for the year, month and day.

January 1 of year 1 is day 1.  Only the year, month and day values
contribute to the result.
)r(   r  r  r	  r   r   r   r   Zdate.toordinal~  s     

DKK;;r   c                s    Vf   V P                   pVf   V P                  pVf   V P                  p\        V 4      ! WV4      # )z;Return a new date with new values for the specified fields.)r  r  r	  r   )r   r   r    r%   r  r   r^   Zdate.replace  s=    <::D=KKE;))CDz$s++r   c                s    \        V\        4      '       d+   \        V\        4      '       g   V P                  V4      ^ 8H  # \        # r   r   r    r   r   r   r   r   r   r   Zdate.__eq__  5    eT"":eX+F+F99U#q((r   c                s    \        V\        4      '       d+   \        V\        4      '       g   V P                  V4      ^ 8*  # \        # r   r.  r   r   r   r   Zdate.__le__  r/  r   c                s    \        V\        4      '       d+   \        V\        4      '       g   V P                  V4      ^ 8  # \        # r   r.  r   r   r   r   Zdate.__lt__  5    eT"":eX+F+F99U#a''r   c                s    \        V\        4      '       d+   \        V\        4      '       g   V P                  V4      ^ 8  # \        # r   r.  r   r   r   r   Zdate.__ge__  r/  r   c                s    \        V\        4      '       d+   \        V\        4      '       g   V P                  V4      ^ 8  # \        # r   r.  r   r   r   r   Zdate.__gt__  r0  r   c                s    V P                   V P                  V P                  rCpVP                   VP                  VP                  rvp\        W#V3WVV34      # r   )r  r  r	  r   )r   r   r   r2   r3   Zy2Zm2Zd2s   &&      r   r   Z	date._cmp  sG     **dkk499a[[%,,

Q1I|,,r   c                r   )Hash.r   r   r   r   r   r   Zdate.__hash__  s+    >>R!$.."23DN~~r   c                s    \        V\        4      '       d]   V P                  4       VP                  ,           p^ Tu;8  d   \        8:  d   M M\        V 4      P                  V4      # \        R4      h\        # )zAdd a date to a timedelta.result out of range)	r   r   r   rJ   _MAXORDINALr   r  r   r   )r   r   Zor   r   r   Zdate.__add__  sX    eY'' 5::-A1##Dz--a00 566r   c                s   \        V\        4      '       d   V \        VP                  ) 4      ,           # \        V\        4      '       d2   V P	                  4       pVP	                  4       p\        W#,
          4      # \
        # )z.Subtract two dates, or a date and a timedelta.)r   r   rJ   r    r   r   )r   r   days1days2r   r   r   Zdate.__sub__  s]    eY'')UZZK000eT""NN$EOO%EU]++r   c                s>    V P                  4       ^,           ^,          # )z:Return day of the week, where Monday == 0 ... Sunday == 6.r   r   r   r   r  Zdate.weekday  s     1$))r   c                sD    V P                  4       ^,          ;'       g    ^# )z:Return day of the week, where Monday == 1 ... Sunday == 7.r6  r   r   r   
isoweekdayZdate.isoweekday  s     ~~!#((q(r   c                s   V P                   p\        V4      p\        V P                   V P                  V P                  4      p\        W2,
          ^4      w  rEV^ 8  d*   V^,          p\        V4      p\        W2,
          ^4      w  rEM)V^48  d#   V\        V^,           4      8  d   V^,          p^ p\        W^,           V^,           4      # )ag  Return a named tuple containing ISO year, week number, and weekday.

The first ISO week of the year is the (Mon-Sun) week
containing the year's first Thursday; everything else derives
from that.

The first week is 1; Monday is 1 ... Sunday is 7.

ISO calendar algorithm taken from
https://www.phys.uu.nl/~vgent/calendar/isocalendar.htm
(used with permission)
)r  r   r(   r  r	  r)   _IsoCalendarDate)r   r   week1mondayr  r   r%   r   r   isocalendarZdate.isocalendar  s     zz%d+T[[$))<5.2	!8AID)$/Ku2A6ID#RZQ//	1fc!e44r   c                sx    \        V P                  R 4      w  r\        WV P                  V P                  .4      3#    )r)   r  r  r  r	  )r   yhiylo   &  r   r   Zdate._getstate  s1    $**c*cTYY7899r   c                sP    Vw  r#V n         V n        VR ,          V,           V n        R# )r<  N)r  r	  r  )r   stringr=  r>  r   r   
__setstateZdate.__setstate  s!    +1($+ty3Y_
r   c                r   r   r   r   r   r   r   Zdate.__reduce__  r   r   )r	  r   r  r  )r  r  r	  r   )NN)NNN).r   r   r   r   r   r   r   classmethodr  r  r  r  r  r  r   r$  rR   r)  r+  r   r   r   r    r%   rb   r   r^   __replace__r   r   r   r   r   r   r   r   r   r   r  r7  r:  r   r  r   r   r   r   r   r   r    r      s]    8 7ID   $ $
   K K" < < K K0$#>	G G      /
<, K




- H*)
5<:%2 2r   r   c                   sF   a  ] tR tRt o RtRtR tR tR tR t	R t
RtV tR	# )
r   i  zwAbstract base class for time zone info classes.

Subclasses must override the tzname(), utcoffset() and dst() methods.
c                    \        R4      h)z%datetime -> string name of time zone.z&tzinfo subclass must override tzname()ZNotImplementedErrorr   dtr   r   rY   Ztzinfo.tzname  s    !"JKKr   c                rD  )zIdatetime -> timedelta, positive for east of UTC, negative for west of UTCz)tzinfo subclass must override utcoffset()rE  rF  r   r   rU   Ztzinfo.utcoffset  s    !"MNNr   c                rD  )zdatetime -> DST offset as timedelta, positive for east of UTC.

Return 0 if DST not in effect.  utcoffset() must include the DST
offset.
z#tzinfo subclass must override dst()rE  rF  r   r   r  Z
tzinfo.dst  s     ""GHHr   c                st   \        V\        4      '       g   \        R4      hVP                  V Jd   \	        R4      hVP                  4       pVf   \	        R4      hVP                  4       pVf   \	        R4      hW#,
          pV'       d(   W,          pVP                  4       pVf   \	        R4      hW,           # )z*datetime in UTC -> datetime in local time.z&fromutc() requires a datetime argumentzdt.tzinfo is not selfz0fromutc() requires a non-None utcoffset() resultz*fromutc() requires a non-None dst() resultz;fromutc(): dt.dst gave inconsistent results; cannot convert)r   r   r   r   r@   rU   r  )r   rG  ZdtoffZdtdstdeltar   r   fromutcZtzinfo.fromutc#  s     "h''DEE99D 455= & ' '
 =IJJKBFFHE}  "; < <zr   c                sx    \        V R R4      pV'       d	   V! 4       pMRpV P                  W P                  4       3# )__getinitargs__Nr	   )r]   r   Z__getstate__)r   Zgetinitargsr   r?  r   r   Ztzinfo.__reduce__@  s8    d$5t<=DD&7&7&9::r   r	   N)r   r   r   r   r   r   rY   rU   r  rI  r   r   r   r   r   r   r   r     s2      ILOI:; ;r   c                   sn   a a ] tR tRt oV 3R lt]R 4       t]R 4       t]R 4       tR t	R t
RtVtV ;t# )	IsoCalendarDateiI  c               s&   < \         SV `  WW#34      # r   )Zsuperr   )r   r   r   r  r   s   """"r   r   ZIsoCalendarDate.__new__K  s    ws4$9::r   c                s    V ^ ,          # r   r	   r   r   r   r   ZIsoCalendarDate.yearN      Awr   c                s    V ^,          # )r   r	   r   r   r   r   ZIsoCalendarDate.weekR  rL  r   c                s    V ^,          # rv   r	   r   r   r   r  ZIsoCalendarDate.weekdayV  rL  r   c                s&    \         \        V 4      33# r   )tupler   r   r   r   ZIsoCalendarDate.__reduce__Z  s     d~&&r   c                sp    V P                   P                   R V ^ ,           RV ^,           RV ^,           R2# )z(year=z, week=z
, weekday=r   )r   r   r   r   r   r   ZIsoCalendarDate.__repr___  s?    >>**+a	a	DG9AG 	Hr   r	   )r   r   r   r   r   r   r   r   r  r   r   r   r   Z__classcell__)r   r   s   @@r   rK  rK  I  sW     ;      '
H Hr   rK  c                   sR  a  ] tR tRt o RtR#tR$R^ /R llt]R 4       t]	R 4       t
]	R 4       t]	R	 4       t]	R
 4       t]	R 4       t]	R 4       tR tR tR tR tR tR%R ltR tR tR tR&R lt]t]R 4       tR tR tR tR tR t R'RR/R llt!]!t"R(R lt#R t$R  t%R! t&R"t'V t(R# ))r   ih  a  Time with time zone.

Constructors:

__new__()
strptime()

Operators:

__repr__, __str__
__eq__, __le__, __lt__, __ge__, __gt__, __hash__

Methods:

strftime()
isoformat()
utcoffset()
tzname()
dst()

Properties (readonly):
hour, minute, second, microsecond, tzinfo, fold
Nr   c               sH   \        V\        \        34      '       d   \        V4      ^8X  d   \	        VR,          4      ^,          ^8  db   \        V\        4      '       d    VP                  R4      p\        P                  V 4      pTP                  Y;'       g    R4       RVn        V# \        WW4V4      w  rr4p\        V4       \        P                  V 4      pWn        W'n        W7n        WGn        WWn        RVn        Wgn        V#   \         d    \        R4      hi ; i)zConstructor.

Arguments:

hour, minute (required)
second, microsecond (default to zero)
tzinfo (default to None)
fold (keyword only, default to zero)
:r   r   Nr  znFailed to encode latin1 string when unpickling a time object. pickle.load(data, encoding='latin1') is assumed.Nr   )r   r  r   r\   r  r  r  r@   ra   r   _time__setstater   r   r   _hour_minute_second_microsecond_tzinfo_fold)r   r   r   r   rT   r   r   r   s   &&&&&&$ r   r   Ztime.__new__  s    teS\**s4yA~S	N4"$$$$L;;x0D >>#&DOOD..D1DNK2D&t35/f4&!~~c"
'
+ * L$KL LLs   "D
 
D!c                r  )zGstring, format -> new time parsed from a string (like time.strptime()).N)r  Z_strptime_datetime_timer  r'   r   r  Ztime.strptime  r  r   c                r   zhour (0-23)rP  r   r   r   r   Z	time.hour  r   r   c                r   zminute (0-59)rQ  r   r   r   r   Ztime.minute       ||r   c                r   zsecond (0-59)rR  r   r   r   r   Ztime.second  rZ  r   c                r   zmicrosecond (0-999999)rS  r   r   r   rT   Ztime.microsecond          r   c                r   ztimezone info objectrT  r   r   r   r   Ztime.tzinfo  rZ  r   c                r   r   rU  r   r   r   r   Z	time.fold      zzr   c                f    \        V\        4      '       d   V P                  VR R7      ^ 8H  # \        # T)allow_mixedr   r   r   r   r   r   r   r   Ztime.__eq__  s-    eT""99U95::!!r   c                r   r   rg  r   r   r   r   Ztime.__le__  )    eT""99U#q((!!r   c                r   r   rg  r   r   r   r   Ztime.__lt__  )    eT""99U#a''!!r   c                r   r   rg  r   r   r   r   Ztime.__ge__  rh  r   c                r   r   rg  r   r   r   r   Ztime.__gt__  ri  r   c                s   V P                   pVP                   pR ;rVW4J d   RpM$V P                  4       pVP                  4       pWV8H  pV'       de   \        V P                  V P                  V P
                  V P                  3VP                  VP                  VP
                  VP                  34      # Ve   Vf   V'       d   ^# \        R4      hV P                  ^<,          V P                  ,           V\        ^R7      ,          ,
          pVP                  ^<,          VP                  ,           V\        ^R7      ,          ,
          p	\        WP
                  V P                  3WP
                  VP                  34      # )NTz$cannot compare naive and aware timesrH   )	rT  rU   r   rP  rQ  rR  rS  r   r   )
r   r   rf  mytzottzmyoffotoffbase_compareZmyhhmmZothhmms
   &&&       r   r   Z	time._cmp  s0   ||}}<LNN$EOO%E >LT\\4<<**,emmU]]++-. . =EM FGGb4<</%19M2MMr!EMM1E9Q;O4OOV\\4+<+<=]]E,>,>?A 	Ar   c                s   V P                   R8X  Ed6   V P                  '       d   V P                  ^ R7      pMT pVP                  4       pV'       g2   \	        VP                  4       ^ ,          4      V n         V P                   # \        \        V P                  V P                  R7      V,
          \        ^R7      4      w  r4V\        ^R7      ,          p^ Tu;8:  d   ^8  d?   M M;\	        \        W4V P                  V P                  4      4      V n         V P                   # \	        W4V P                  V P                  34      V n         V P                   # )r1  r   r8   r9   rG   rH   r   )r   r   r^   rU   r   r   r)   r   r   r   r   r   rT   )r   r  tzoffhr2   rh   r   r   Ztime.__hash__  s    >>RyyyLLaL(KKME!%akkmA&6!7 ~~ idiiMPUU'a02 i**;B;%)$qT[[$BRBR*S%TDN ~~ &*1d>N>N*O%PDN~~r   c                s8    V P                  4       p\        V4      # )z=Return formatted timezone offset (+xx:xx) or an empty string.)rU   rP   )r   rK   r   r   _tzstrZtime._tzstr"  s    nnc""r   c                s   V P                   ^ 8w  d!   RV P                  V P                   3,          pM'V P                  ^ 8w  d   RV P                  ,          pMRpR\        V 4      V P                  P                  V P
                  V P                  V3,          pV P                  e%   VRR	 RV P                  ,          ,           R,           pV P                  '       d   VRR	 R,           pV# )
%Convert to formal string, for repr().z, %d, %dz, %dr   z%s%s(%d, %d%s)N, tzinfo=%rr   	, fold=1)r   )	rS  rR  r   r   r   rP  rQ  rT  rU  r   rM   r   r   r   Ztime.__repr__'  s    !dllD,=,=>>A\\Q%AA 1$ 7 $ ; ; $

DLL! = = <<##255;A:::#2$Ar   c                s    \        V P                  V P                  V P                  V P                  V4      pV P                  4       pV'       d	   W#,          pV# )a[  Return the time formatted according to ISO.

The full format is 'HH:MM:SS.mmmmmm+zz:zz'. By default, the fractional
part is omitted if self.microsecond == 0.

The optional argument timespec specifies the number of additional
terms of the time to include. Valid options are 'auto', 'hours',
'minutes', 'seconds', 'milliseconds' and 'microseconds'.
)rD   rP  rQ  rR  rS  rs  )r   rB   rM   r   r   r   r+  Ztime.isoformat:  sE     T\\4<<++X7[[]GAr   c                s    \        V\        4      '       g   \        R4      hVP                  R4      p V ! \	        V4      ^ ,          !  #   \
         d    \        RT: 24      hi ; i)z>Construct a time from a string in one of the ISO 8601 formats.#fromisoformat: argument must be strTr  )r   r   r   Zremoveprefixr   r  r@   )r   Ztime_stringr   r   r  Ztime.fromisoformatM  so     +s++ABB
 "..s3	K-k:1=>> 	K9+IJJ	Ks   A
 
A%c           	     sl    R^^V P                   V P                  V P                  ^ ^R3	p\        WV4      # )zkFormat using strftime().  The date part of the timestamp passed
to underlying strftime should not be used.
il  r   )rP  rQ  rR  rc   )r   r?   rb   r   r   rR   Ztime.strftime]  s;     1aZZt||2	 dI66r   c                r%  r&  r'  r(  r   r   r)  Ztime.__format__h  r*  r   c                t    V P                   f   R# V P                   P                  R4      p\        RV4       V# )zUReturn the timezone offset as timedelta, positive east of UTC
(negative west of UTC).NrU   rT  rU   r   r   r   r   r   rU   Ztime.utcoffsetq  4     <<''-+v.r   c                sr    V P                   f   R# V P                   P                  R4      p\        V4       V# zReturn the timezone name.

Note that the name is 100% informational -- there's no requirement that
it mean anything in particular. For example, "GMT", "UTC", "-500",
"-5:00", "EDT", "US/Eastern", "America/New York" are all valid replies.
NrT  rY   r   r   r   r   r   rY   Ztime.tznamez  2     <<||""4(dr   c                rz  aA  Return 0 if DST is not in effect, or the DST offset (as timedelta
positive eastward) if DST is in effect.

This is purely informational; the DST offset has already been added to
the UTC offset returned by utcoffset() if applicable, so there's no
need to consult dst() unless you're interested in displaying the DST
info.
Nr  rT  r  r   r|  r   r   r  Ztime.dst  4     <<!!$'%(r   c          	     s    Vf   V P                   pVf   V P                  pVf   V P                  pVf   V P                  pVRJ d   V P                  pVf   V P
                  p\        V 4      ! WW4WVR7      # )z;Return a new time with new values for the specified fields.Tro  )r   r   r   rT   r   rU  r   )r   r   r   r   rT   r   r   s   &&&&&&$r   r^   Ztime.replace  sp     <99D>[[F>[[F**KT>[[F<::DDz$VOOr   c                s,   \        V P                  R 4      w  r#\        VR 4      w  rBV P                  pV P                  '       d   V^8  d
   V^,          p\	        WPP
                  V P                  WBV.4      pV P                  f   V3# W`P                  3# r;  )r)   rS  rP  rU  r  rQ  rR  rT  )r   protocolus2us3us1rr  	basestaterO   r   r   Ztime._getstate  s    $++S1#s#JJ:::(Q,HA1llDLLS* +	<<<||,,r   c                s   Ve"   \        V\        4      '       g   \        R4      hVw  q0n        V n        rEpV^8  d   ^V n        V^,
          V n        M^ V n        W0n        V^,          V,          ^,          V,          V n        W n        R # )Nbad tzinfo state arg)	r   _tzinfo_classr   rQ  rR  rU  rP  rS  rT  )r   r@  r   rr  r  r  r  s   &&&    r   rA  Ztime.__setstate  sw    j&G&G2337=4<ss7DJSDJDJJ"ax3.14;r   c                <    V P                   V P                  V4      3# r   r   r   r  r   r   __reduce_ex__Ztime.__reduce_ex__      x 899r   c                $    V P                  ^4      # rM  r  r   r   r   r   Ztime.__reduce__      !!!$$r   )rU  r   rP  rS  rQ  rR  rT  )rP  rQ  rR  rS  rT  r   rU  r   r   r   r   NFr=   )NNNNTrZ   ))r   r   r   r   r   r   r   rB  r  r   r   r   r   rT   r   r   r   r   r   r   r   r   r   rs  r   r+  r   r  rR   r)  rU   rY   r  r^   rC  r   rO  r  r   r   r   r   r   r   r   r   h  sD    . _I%UV %N K K       ! !    """""A8.#
&" GK K	7P%)P" K-:% %r   c                   s  a  ] tR tRt o Rt]P                  tR3R^ /R llt]R 4       t	]R 4       t
]R 4       t]R	 4       t]R
 4       t]R 4       t]R 4       t]R4R l4       t]R 4       t]R4R l4       t]R 4       t]R5R l4       t]R 4       tR tR tR tR tR tR tR tR6RR/R llt]tR tR4R lt R t!R7R lt"R t#R  t$]R! 4       t%R" t&R# t'R$ t(R% t)R& t*R' t+R( t,R) t-R8R* lt.R+ t/]/t0R, t1R- t2R9R. lt3R/ t4R0 t5R1 t6R2t7V t8R# ):r   i  zdatetime(year, month, day[, hour[, minute[, second[, microsecond[,tzinfo]]]]])

The year, month and day arguments are required. tzinfo may be None, or an
instance of a tzinfo subclass. The remaining arguments may be ints.
Nr   c	               s   \        V\        \        34      '       d   \        V4      ^
8X  d|   ^\	        VR,          4      ^,          u;8:  d   ^8:  dV   M MR\        V\        4      '       d    \        VR4      p\        P                  V 4      p
V
P                  W4       RV
n
        V
# \        WV4      w  rp\        WEWgV	4      w  rErgp	\        V4       \        P                  V 4      p
Wn        W*n        W:n        WJn        WZn        Wjn        Wzn        Wn        RV
n
        Wn        V
#   \
         d    \        R4      hi ; i)r  r   r  zrFailed to encode latin1 string when unpickling a datetime object. pickle.load(data, encoding='latin1') is assumed.r   )r   r  r   r\   r  r  r@   ra   r   _datetime__setstater   r   r   r   r  r  r	  rP  rQ  rR  rS  rT  rU  )r   r   r    r%   r   r   r   rT   r   r   r   s   &&&&&&&&&$ r   r   Zdatetime.__new__  s   teS\**s4yBT#Y$**$$$L x0D >>#&DOOD(DNK-d3?S2D&t35/f4&!~~c"
	
'
3 * L$KL LLs   -D' 'D>c                r   rV  rW  r   r   r   r   Zdatetime.hour  r   r   c                r   rX  rY  r   r   r   r   Zdatetime.minute  rZ  r   c                r   r[  r\  r   r   r   r   Zdatetime.second  rZ  r   c                r   r]  r^  r   r   r   rT   Zdatetime.microsecond  r_  r   c                r   r`  ra  r   r   r   r   Zdatetime.tzinfo  rZ  r   c                r   r   rb  r   r   r   r   Zdatetime.fold  rc  r   c           
     s(   \         P                  ! V4      w  rA\        VR,          4      pVR8  d   V^,          pVR,          pMV^ 8  d   V^,          pVR,          pV'       d   \        P                  M\        P
                  pV! V4      w	  rxrrrp\        V^;4      pV ! WxWWWS4      pVf   V'       g   RpVV8  d(   \        P                  P                  R4      '       d   V# V! VV,
          4      R,          w  rxrrV ! WxWWWS4      pVV,
          \        ^ V4      ,
          pVP                  ^ 8  dE   V! VV\        ^ ^4      ,          ,           4      R,          w  rxrrV ! WxWWWS4      pVV8X  d   ^Vn        V# Ve   VP                  V4      pV# )rConstruct a datetime from a POSIX timestamp (like time.time()).

A timezone info object may be passed in as well.
r   r   ZwinNr0   Nr   )r   r   r   r1   Zgmtimer
  minsysZplatformZ
startswithr   rJ   rU  rI  )r   r  r~   r   ZfracrA   Z	converterr   r2   r3   r4   r5   r6   r  r  r  Zresultmax_fold_secondsZprobe1ZtransZprobe2s   &&&&                 r   _fromtimestampZdatetime._fromtimestamp  sy    **Q-4#:=FA'MB!VFA'MB$'ELLU__	2;A,/aRWCR[Q1""1:c  ) ##(?(?(F(F"+A0@,@"A""EA!qbb5FVOi3C&DDEzzA~&/EYq!_4L0L&Mb&Q#aRQ1""9V##$FL  ^ZZ'Fr   c                s@    \        V4       V P                  WRJV4      # )r  N)r   r  )r   	timestampr      &&&r   r  Zdatetime.fromtimestampG  s#     	"!!)t^R@@r   c                s`    ^ RI pVP                  R\        ^R7       V P                  VRR4      # )z6Construct a naive UTC datetime from a POSIX timestamp.Nzdatetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(t, datetime.UTC).Z
stacklevelT)warningswarnDeprecationWarningr  )r   r  r  r   r   utcfromtimestampZdatetime.utcfromtimestampQ  s=     	 J )!" 	 	$ !!!T400r   c                sN    \         P                  ! 4       pV P                  W!4      # )zBConstruct a datetime from time.time() and optional time zone info.r  )r   r   r  r   r   nowZdatetime.now]  s      JJL  ''r   c                s    ^ RI pVP                  R\        ^R7       \        P                  ! 4       pV P                  VRR4      # )z*Construct a UTC datetime from time.time().Nzdatetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).r  T)r  r  r  r1   r   r  )r   r  r  r?  r   utcnowZdatetime.utcnowc  sG     	 = )!" 	 	$ JJL!!!T400r   c                sj   \        V\        4      '       g   \        R4      h\        V\        4      '       g   \        R4      hVRJ d   VP                  pV ! VP
                  VP                  VP                  VP                  VP                  VP                  VP                  W2P                  R7	      # )z8Construct a datetime from a given date and a given time.z%date argument must be a date instancez%time argument must be a time instanceTro  )r   _date_classr   _time_classr   r   r    r%   r   r   r   rT   r   )r   r    r   r   r  r   combineZdatetime.combinep  s     $,,CDD$,,CDDT>[[F499djj$((99dkk4;;8H8H		+ 	+r   c                sn   \        V\        4      '       g   \        R4      h\        V4      ^8  d   \	        RV: 24      h \        V4      pV^ V pW^,           R p\        V4      pT'       dz    \        T4      w  rgpT'       d   \	        R4      hT'       dO   Tw  rpT
^8:  dC   T\        Y4      ;p8:  d1   T^,          pY8  d   ^pT
^,          p
T
^8  d   ^p
T	^,          p	YT.pM. ROpT ! YV,           !  #   \         d    \	        RT: 24      Rhi ; i  \         d    \	        RT: 24      Rhi ; i)zBConstruct a datetime from a string in one of the ISO 8601 formats.rx  r  Nz9minute, second, and microsecond must be 0 when hour is 24r  )	r   r   r   r\   r@   ri   rn   r   r!   )r   r  Zseparator_locationZdstrrr   Zdate_componentsZtime_componentsr   r   r   r    r%   Zdays_in_months   &&           r   r  Zdatetime.fromisoformat}  sr    +s++ABB{a9+IJJ	H!CK!Pq!34D1 467D3D9O
 =J_`dJeG2G
 )$%`aa"'6$D{st@[/[}'\q."#C!QJE$rz() $	+/*<0O_688=  	H,[O<>CGH	H  L 0@BGKLLs   &C9 1D 9DD4c           	     s    V P                  4       pVf   RpMV'       d   ^pM^ p\        V P                  V P                  V P                  V P
                  V P                  V P                  V4      # r,  )r  r7   r   r    r%   r   r   r   )r   r  r   r   rb   Zdatetime.timetuple  sY    hhj;CCC!$))TZZ"&))T[[$++"%' 	'r   c                s  a
 \        R^^4      o
RpV S
,
          \        ^ ^4      ,          pV
3R lpV! V4      V,
          pW$,
          pV! V4      pWb8X  d5   WQ) V3V P                  ,          ,           pV! V4      V,
          pWH8X  d   V# MWe,
          pW(,
          pV! V4      p	W8X  d   V# Wb8X  d   V# \        \        3V P                  ,          ! WW4      # )zReturn integer POSIX timestamp.  c                 s   < \         P                  ! V 4      R ,          w  rr4rV\        WW4WV4      S,
          \        ^ ^4      ,          # )r  )r1   r
  r   r   )Zur   r2   r3   r4   r5   r6   epochs   &      r   localZdatetime._mktime.<locals>.local  s<    "'//!"4R"8A!Q1"1E9i1oMMr   r   )r   r   r   maxr  )r   r  r  r  r   Zu1Zt1Zu2r   Zt2r  s   &         @r   _mktimeZdatetime._mktime  s    q!$$E\i1o-	N
 !HqLU2Y7 (*:;DIIFFBb	BAv	  AU2Y7I7I Sz$))$R,,r   c                s    V P                   f*   V P                  4       pWP                  R,          ,           # V \        ,
          P	                  4       # )zReturn POSIX timestamp as floatr   )rT  r  rT   _EPOCHr   rw  r   r   r  Zdatetime.timestamp  s>    <<A''#---6M0022r   c           	     s    V P                  4       pV'       d	   W,          p V P                  V P                  V P                  rCpV P                  V P
                  V P                  rvp\        W#WEWg^ 4      # )z4Return UTC time tuple compatible with time.gmtime().)rU   r   r    r%   r   r   r   r7   )r   r   r   r2   r3   r4   r5   r6   rm   r   utctimetupleZdatetime.utctimetuple  sW    !ND))TZZaYYT[[!!rq99r   c                r-  )zReturn the date part.)r    r  r  r	  r   r   r   r    Zdatetime.date  s    DJJTYY77r   c                s    \        V P                  V P                  V P                  V P                  V P
                  R7      # )z'Return the time part, with tzinfo None.ro  )r   r   r   r   rT   r   r   r   r   r   Zdatetime.time  s.    DIIt{{DKK9I9IPTPYPYZZr   c           	     s    \        V P                  V P                  V P                  V P                  V P
                  V P                  R7      # )z'Return the time part, with same tzinfo.ro  )r   r   r   r   rT   rT  r   r   r   r   timetzZdatetime.timetz  s6    DIIt{{DKK9I9ILLtyy2 	2r   c	               sR   Vf   V P                   pVf   V P                  pVf   V P                  pVf   V P                  pVf   V P                  pVf   V P
                  pVf   V P                  pVRJ d   V P                  pV	f   V P                  p	\        V 4      ! WW4WVWxV	R7	      # )z?Return a new datetime with new values for the specified fields.Tro  )
r   r    r%   r   r   r   rT   r   r   r   )
r   r   r    r%   r   r   r   rT   r   r   s
   &&&&&&&&&$r   r^   Zdatetime.replace  s     <99D=JJE;((C<99D>[[F>[[F**KT>[[F<99DDz$s&%D: 	:r   c                s   V P                   f^   V P                  4       pV P                  ^V P                  ,
          R7      P                  4       pW!8w  d   W!8  V P                  8X  d   TpMV \        ,
          \        ^R7      ,          p\        P                  ! V4      p\        VR,          !  pVP                  pVP                  p\        \        VR7      V4      # )Nro  r   r  )r   r  r^   r   r  r   r1   r
  r   Z	tm_gmtoffZtm_zoner   )r   ZtsZts2Zlocaltmr  ZgmtoffZzone   &      r   _local_timezoneZdatetime._local_timezone  s    ;;B,,AdiiK,088:CyH*B-Ia$88B//"%'"+&""	&1488r   c                s   Vf   V P                  4       pM!\        V\        4      '       g   \        R4      hV P                  pVf#   V P                  4       pVP	                  V 4      pMFVP	                  V 4      pVf2   V P                  R R7      P                  4       pVP	                  V 4      pWJ d   V # W,
          P                  VR7      pVP                  V4      # )Nz)tz argument must be an instance of tzinfor   )r  r   r   r   rU   r^   rI  )r   r   rj  Zmyoffsetr~   r   r   
astimezoneZdatetime.astimezone'  s    :%%'BB''GHH{{<'')D~~d+H~~d+H||4|0@@B>>$/:K ''r'2 zz#r   c                s   V P                  4       ^,          ;'       g    ^pR\        V,          \        V P                  ,          V P                  V P
                  V P                  V P                  V P                  3,          # )r  z%s %s %2d %02d:%02d:%02d %04d)	r   r!  r"  r  r	  rP  rQ  rR  r  r#  r   r   r$  Zdatetime.ctimeB  sb    .."Q&++!.g$IIJJdllJJ2  	r   c                s*   RV P                   V P                  V P                  V3,          \        V P                  V P
                  V P                  V P                  V4      ,           pV P                  4       p\        V4      pV'       d	   W5,          pV# )a5  Return the time formatted according to ISO.

The full format looks like 'YYYY-MM-DD HH:MM:SS.mmmmmm'.
By default, the fractional part is omitted if self.microsecond == 0.

If self.tzinfo is not None, the UTC offset is also attached, giving
a full format of 'YYYY-MM-DD HH:MM:SS.mmmmmm+HH:MM'.

Optional argument sep specifies the separator between date and
time, default 'T'.

The optional argument timespec specifies the number of additional
terms of the time to include. Valid options are 'auto', 'hours',
'minutes', 'seconds', 'milliseconds' and 'microseconds'.
z%04d-%02d-%02d%c)
r  r  r	  rD   rP  rQ  rR  rS  rU   rP   )r   rL   rB   rM   rK   r   s   &&&   r   r+  Zdatetime.isoformatL  st       4::t{{DIIs"KK$**dllDLL++X77 nnC GAr   c           	     s   V P                   V P                  V P                  V P                  V P                  V P
                  V P                  .pVR,          ^ 8X  d   VR VR,          ^ 8X  d   VR \        V 4      : V P                  P                  : RRP                  \        \        V4      4      : R2pV P                  e%   VRR RV P                  ,          ,           R,           pV P                  '       d   VRR R,           pV# )rt  r   r   r   Nru  rv  r   )r  r  r	  rP  rQ  rR  rS  r   r   r   r`   rp   r   rT  rU  )r   ZLrM   r?  r   r   Zdatetime.__repr__g  s    ZZdiiZZt||T5F5FHR5A:"R5A:"+D1..55))CQK02 <<##255;A:::#2$Ar   c                s&    V P                  RR7      # )zConvert to string, for str().Z rV   )r+  r   r   r   r   Zdatetime.__str__z  s    ~~#~&&r   c                r  )zKstring, format -> new datetime parsed from a string (like time.strptime()).N)r  Z_strptime_datetime_datetimer  r'   r   r  Zdatetime.strptime~  s     	44SvNNr   c                t    V P                   f   R# V P                   P                  V 4      p\        RV4       V# )zTReturn the timezone offset as timedelta positive east of UTC (negative west of
UTC).NrU   r{  r|  r   r   rU   Zdatetime.utcoffset  r}  r   c                sr    V P                   f   R# V P                   P                  V 4      p\        V4       V# r~  r  r  r   r   rY   Zdatetime.tzname  r  r   c                r  r  r  r|  r   r   r  Zdatetime.dst  r  r   c                rd  re  r   r   r   r   r   r   r   r   Zdatetime.__eq__  s-    eX&&99U95::!!r   c                r   r   r  r   r   r   r   Zdatetime.__le__  )    eX&&99U#q((!!r   c                r   r   r  r   r   r   r   Zdatetime.__lt__  )    eX&&99U#a''!!r   c                r   r   r  r   r   r   r   Zdatetime.__ge__  r  r   c                r   r   r  r   r   r   r   Zdatetime.__gt__  r  r   c           
     sl   V P                   pVP                   pR ;rVW4J d   RpMV P                  4       pVP                  4       pV'       dk   WPP                  V P                  '       * R7      P                  4       8w  d   ^# WaP                  VP                  '       * R7      P                  4       8w  d   ^# WV8H  pV'       d   \	        V P
                  V P                  V P                  V P                  V P                  V P                  V P                  3VP
                  VP                  VP                  VP                  VP                  VP                  VP                  34      # Ve   Vf   V'       d   ^# \        R4      hW,
          pVP                  ^ 8  d   R# T;'       d    ^;'       g    ^ # )NTro  z(cannot compare naive and aware datetimesr   )rT  rU   r^   r   r   r  r  r	  rP  rQ  rR  rS  r   rJ   )	r   r   rf  rj  rk  rl  rm  rn  Zdiff	   &&&      r   r   Zdatetime._cmp  sM   ||}}<LNN$EOO%ELL$))mL<FFHHMM5::~M>HHJJ >LT[[$))T\\4<<**, ellEJJemmU]]++-. . =EM JKK|99q=IzzQr   c                s*   \        V\        4      '       g   \        # \        V P                  4       V P                  V P
                  V P                  V P                  R7      pW!,          p\        VP                  R4      w  r4\        V^<4      w  rV^ VP                  u;8  d   \        8:  d]   M MY\        V 4      P                  \        P                  VP                  4      \!        W5VVP"                  V P$                  R7      4      # \'        R4      h)zAdd a datetime and a timedelta.r}   r   r  r2  )r   r   r   r   rP  rQ  rR  rS  r)   r:   rJ   r3  r   r  r    r  r   r<   rT  r   )r   r   rH  r   Zremr   r   rO   r   r   Zdatetime.__add__  s    %++!!$..* $

"&,,"&,,'+'8'8	:
 	5==$/	Ruzz([(:%%d&6&6uzz&B&*4+0+=+=26,,'@A A 122r   c                s   \        V\        4      '       g&   \        V\        4      '       d
   W) ,           # \        # V P	                  4       pVP	                  4       pV P
                  V P                  ^<,          ,           V P                  R,          ,           pVP
                  VP                  ^<,          ,           VP                  R,          ,           p\        W#,
          WE,
          V P                  VP                  ,
          4      pV P                  VP                  J d   V# V P                  4       pVP                  4       pWx8X  d   V# Ve   Vf   \        R4      hWh,           V,
          # )z6Subtract two datetimes, or a datetime and a timedelta.r   z(cannot mix naive and timezone-aware time)r   r   r   r   r   rR  rQ  rP  rS  rT  rU   r   )	r   r   r4  r5  Zsecs1Zsecs2Zbaserl  rm  	   &&       r   r   Zdatetime.__sub__	  s   %**%++f}$!! !t||b004::3DD 22U[[45GG**U-?-??A <<5==(K !>K=EMFGG|e##r   c                s8   V P                   R8X  d   V P                  '       d   V P                  ^ R7      pMT pVP                  4       pVf2   \	        VP                  4       ^ ,          4      V n         V P                   # \        V P                  V P                  V P                  4      pV P                  R,          V P                  ^<,          ,           V P                  ,           p\	        \        W4V P                  4      V,
          4      V n         V P                   # )r   ro  r   r   )r   r   r^   rU   r   r   r(   r   r    r%   r   r   r   r   rT   )r   r  rq  rJ   r:   rh   r   r   Zdatetime.__hash__	  s    >>RyyyLLaL(KKME}!%akkmA&6!7
 ~~  		4::txx@))d*T[[2-==K!%it?O?O&PSX&X!Y~~r   c                s   \        V P                  R 4      w  r#\        V P                  R 4      w  rE\        VR 4      w  rdV P                  pV P                  '       d   V^8  d
   V^,          p\        W#WpP                  V P                  V P                  V P                  WdV.
4      pV P                  f   V3# WP                  3# r;  )r)   r  rS  r  rU  r  r	  rP  rQ  rR  rT  )	r   r  r=  r>  r  r  r  r2   r  r  r   r   Zdatetime._getstate,	  s    $**c*$++S1#s#KK:::(Q,HA3Q		::t||T\\S* +	 <<<||,,r   c           
     s\   Ve"   \        V\        4      '       g   \        R4      hVw
  r4qPn        V n        V n        V n        rgpV^8  d   ^V n        V^,
          V n        M^ V n        WPn        VR,          V,           V n	        V^,          V,          ^,          V,          V n
        W n        R # )Nr  r<  )r   r  r   r	  rP  rQ  rR  rU  r  r  rS  rT  )	r   r@  r   r=  r>  r2   r  r  r  r  r   rA  Zdatetime.__setstate;	  s    j&G&G2336<	41i	t|Sss7DJc'DKDJK3Y_
"ax3.14;r   c                r  r   r   r  r   r   r  Zdatetime.__reduce_ex__J	  r  r   c                r  rM  r  r   r   r   r   Zdatetime.__reduce__M	  r  r   )
r	  rU  r   rP  rS  rQ  r  rR  rT  r  )NNr   r   r   r   Nr   )T)NNNNNNNT)ry  r=   r  r  )9r   r   r   r   r   r   r   r   r   r   r   r   rT   r   r   rB  r  r  r  r  r  r  r  rb   r  r  r  r    r  r^   rC  r  r  r$  r+  r   r   r  rU   rY   r  r   r   r   r   r   r   r   r   r   r   r   r  r  r   r   r   r   r   r   r   r     s    
 I!45!H       ! !     ) )V A A 	1 	1 ( (
 
1 
1 
+ 
+ -9 -9^' -F3:8[2
::2 K9"66&' O O
""""""#J3& H$0"-:% %r   c                 sr    ^p\        V ^^4      pV^,           ^,          pW#,
          pW18  d
   V^,          pV# r  )r(   )r   ZTHURSDAYZfirstdayZfirstweekdayr9  rh   r   r   r   V	  sA    Ha#HqLA%L)Kqr   c                   s   a  ] tR tRt o Rt]! 4       t]3R ltR t]	RR l4       t
R tR tR tR	 tR
 tR tR tR tR t]! ^RR7      t]) t]R 4       tRtV tR# )r   ia	  c                s\   \        V\        4      '       g   \        R 4      hW P                  J d   V'       g   V P                  # RpM!\        V\
        4      '       g   \        R4      hV P                  Tu;8:  d   V P                  8:  g   M \        RV: 24      hV P                  W4      # )zoffset must be a timedeltaNzname must be a stringr   )
r   r   r   _Omittedr~   r   
_minoffset
_maxoffsetr@   _create)r   r   r   r  r   r   Ztimezone.__new__f	  s    &),,899<<wwDD#&&344~~93>>9 99?
D E E {{6((r   c                s    \        R 4      h)z7type 'datetime.timezone' is not an acceptable base type)r   )r   r   r   __init_subclass__Ztimezone.__init_subclass__u	  s    QRRr   Nc                sH    \         P                  V 4      pWn        W#n        V# r   )r   r   _offset_name)r   r   r   r   r'   r   r  Ztimezone._createx	  s    ~~c"
r   c                sh    V P                   f   V P                  3# V P                  V P                   3# )zpickle supportr  r  r   r   r   rJ  Ztimezone.__getinitargs__	  s+    ::LL?"djj))r   c                sl    \        V\        4      '       d   V P                  VP                  8H  # \        # r   )r   r   r  r   r   r   r   r   Ztimezone.__eq__	  s(    eX&&<<5==00r   c                s,    \        V P                  4      # r   )r   r  r   r   r   r   Ztimezone.__hash__	  s    DLL!!r   c                s,   W P                   J d   R# V P                  f5   \        V 4      : V P                  P                  : RV P
                  : R2# \        V 4      : V P                  P                  : RV P
                  : RV P                  : R2# )zConvert to formal string, for repr().

>>> tz = timezone.utc
>>> repr(tz)
'datetime.timezone.utc'
>>> tz = timezone(timedelta(hours=-5), 'EST')
>>> repr(tz)
"datetime.timezone(datetime.timedelta(-1, 68400), 'EST')"
zdatetime.timezone.utcr   r   r   )r~   r  r   r   r   r  r   r   r   r   Ztimezone.__repr__	  so     88*::!24!8!%!<!<!%/ / "34!8!%!<!<!%tzz; 	;r   c                s$    V P                  R 4      # r   )rY   r   r   r   r   Ztimezone.__str__	  s    {{4  r   c                sd    \        V\        4      '       g   Vf   V P                  # \        R4      h)Nz8utcoffset() argument must be a datetime instance or None)r   r   r  r   rF  r   r   rU   Ztimezone.utcoffset	  s/    b(##rz<< # $ 	$r   c                s    \        V\        4      '       g   Vf6   V P                  f   V P                  V P                  4      # V P                  # \        R4      h)Nz5tzname() argument must be a datetime instance or None)r   r   r  _name_from_offsetr  r   rF  r   r   rY   Ztimezone.tzname	  sN    b(##rzzz!--dll;;:: # $ 	$r   c                sP    \        V\        4      '       g   Vf   R # \        R4      h)Nz2dst() argument must be a datetime instance or None)r   r   r   rF  r   r   r  Ztimezone.dst	  s(    b(##rz # $ 	$r   c                s    \        V\        4      '       d.   VP                  V Jd   \        R 4      hWP                  ,           # \        R4      h)zfromutc: dt.tzinfo is not selfz6fromutc() argument must be a datetime instance or None)r   r   r   r@   r  r   rF  r   r   rI  Ztimezone.fromutc	  sL    b(##yy$  "/ 0 0$$ # $ 	$r   )r8   r<   c           
     sV   V '       g   R # V \        ^ 4      8  d   RpV ) p MRp\        V \        ^R7      4      w  r#\        V\        ^R7      4      w  rCVP                  pVP                  pV'       d   R V VR RVR RVR RVR 2	# V'       d   R V VR RVR RVR 2# R V VR RVR 2# )	UTCrE   rF   rG   rH   Z02drW   Z.Z06d)r   r)   r:   r<   )rH  rN   r8   Zrestr9   r:   r<   r  r   r  Ztimezone._name_from_offset	  s    9Q<DFEDUIA$67tYq%9:,,(($c{!GC='#S)+ ,uSk73-qFFTF5+Qwsm44r   r  )r  r  r   r   )r   r   r   r   r   ra   r  r   r  rB  r  rJ  r   r   r   r   rU   rY   r  rI  r   r  r  Zstaticmethodr  r   r   r   r   r   r   r   a	  s     "I xH"* )S  *
";(!$$$$ "5JJ5 5r   rp  r  r  )	r    r   r   r   r   r   r   r   r  r   )r      i   r     r  r  r  r  r  r  r  r  )NZJanZFebZMarZAprZMayZJunZJulZAugZSepZOctZNovZDec)NZMonZTueZWedZThuZFriZSatZSunr  )rW   )i i'  r>   id   r  i6e)Fr   Z__all__r   r   r1   Zmathr   r  Zoperatorr   r   r   r   r   r   r3  r   r"   Zdbmr&   r[   r   r   r!   r#   r(   r*   r+   r,   r/   r"  r!  r7   rD   rP   rQ   rS   rc   rd   ri   rn   rq   ru   r   rj   r   r   r   r   r   r   r   r  r  Z
resolutionr    r  r   rN  rK  r8  r  r  r   r   r   r  r  r~   r  r	   r   r   <module>r     s   8(    
 $/ 
 FT "Cc"3JC  B*
!F
 C
 
C
 
A
<~?C	I
**$  N0b6r!"H 6 -^7>tB8
A3"
(H2 H2T
 *%	yB'-/	 a0	 M2 M2^
 1a=b"#:; :;zHe H6 # a% a%F 1a=BF#+|	%t |	%~ 1a b"b"b&9Q/ u5v u5n %%il3 3hl
 R!@ @A	B ?@	$1X\\	2r   