+
    yȇi,              
          ^ RI H t HtHt ^ RIHt ^ RIt^ RIt^ RIH	t	H
t
HtHtHtHt ^ RIHt  ! R R4      t ! R R] 4      t]P(                  P+                  R	]! R
^^4      ]! ^R7      3]! ^R7      ]! R
^^4      3.4      R 4       tR# )    )datetime	timedeltatimezone)gettzN)OutOfBoundsDatetimeOutOfBoundsTimedelta	Timedelta	Timestampoffsets	to_offsetc                     a  ] tR t^t o R tR tR tR tR tR t	R t
R tR	 tR
 tR t]P                   P#                  R]! ^R7      ]P(                  ! ^R4      ]! ^R7      .4      R 4       t]P                   P#                  R]P(                  ! R)R4      R)3]P(                  ! RR4      R3]P(                  ! R)R4      R*3]P(                  ! R)R4      R+3.4      R 4       t]P                   P#                  R]! R4      ]! RRR7      .4      ]P                   P#                  R^]P2                  ! ^4      ]P4                  ! ^^.]P6                  R7      ]P4                  ! ^^.]P8                  R7      .4      R 4       4       t]P                   P#                  RR,R-.4      R 4       t]P                   P#                  RR,R-.4      R 4       tR  t ]P                   P#                  R!R"]!! R#4      R#R$.4      R% 4       t"R& t#R't$V t%R(# ).TestTimestampArithmeticc                    \        R 4      p\        R4      ^d,          p\        R4      pW,           V8X  g   Q hW!,           V8X  g   Q h\        R4      pW,
          V8X  g   Q hR# )2000/1/1Dz
2000/04/10z
1999/09/23N)r
   r   )selfstampoffset_no_overflowexpecteds   &   }/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/scalar/timestamp/test_arithmetic.pytest_overflow_offset,TestTimestampArithmetic.test_overflow_offset   sd     *%&s^c1\*)X555!)X555\*)X555    c                <   \        R 4      P                  R4      pR\        P                  ! ^4      ,          pRp\        P
                  ! \        VR7      ;_uu_ 4        W,            RRR4       \        P
                  ! \        VR7      ;_uu_ 4        W!,            RRR4       \        P
                  ! \        VR7      ;_uu_ 4        W,
           RRR4       \        R4      P                  R4      p\        R4      R	,          pRp\        P
                  ! \        VR7      ;_uu_ 4        W,            RRR4       \        P
                  ! \        VR7      ;_uu_ 4        W!,            RRR4       \        P
                  ! \        VR7      ;_uu_ 4        W,
           RRR4       R#   + '       g   i     ELJ; i  + '       g   i     EL); i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     R# ; i)
z2017-01-13 00:00:00nsi3zECannot cast -?20169940 days \+?00:00:00 to unit='ns' without overflowmatchNr   r   zHCannot cast -?10000000000 days \+?00:00:00 to unit='ns' without overflowl    d(	 )r
   as_unitr   Daypytestraisesr   r   )r   r   offset_overflowlmsg2lmsg3s   &    r   test_overflow_offset_raises3TestTimestampArithmetic.test_overflow_offset_raises&   s^    /088>"W[[^3X]]/u==# > ]]/u==# > ]]/u==# > *%--d3#C.61 X 	 ]]/u==# > ]]/u==# > ]]/u==# >=1 >== >== >== >= >= >==sH   	F(	F<	G+	G$ 	G7	H
(F9	<G	G!	$G4	7H	
H	c                f   R p\        R4      P                  R4      p\        R4      P                  R4      p\        P                  ! \        VR7      ;_uu_ 4        W#,
           RRR4       W#P                  4       ,
          VP                  4       V,
          8X  g   Q hR#   + '       g   i     LD; i)zResult is too largez2101-01-01 00:00:00r   z1688-01-01 00:00:00r   N)r
   r   r    r!   r   to_pydatetime)r   msgabs   &   r   test_overflow_timestamp_raises6TestTimestampArithmetic.test_overflow_timestamp_raisesI   s~    #+,44T:+,44T:]].c::E ; OO%%1??+<q+@AAA	 ;:s   	B  B0	c                z    \        R 4      pV\        ^4      ,           pVP                  VP                  8X  g   Q hR# )l   { |%*x N)r
   r   
nanosecond)r   valresults   &  r   test_delta_preserve_nanos1TestTimestampArithmetic.test_delta_preserve_nanosU   s3    +,y|#  CNN222r   c                   \        R 4      p\        RVR7      pW2,           pWC,
          V8X  g   Q hVP                  4       V,
          V8X  g   Q hVf!   VP                  4       V,
          V8X  g   Q hR# Rp\        P
                  ! \        VR7      ;_uu_ 4        VP                  4       V,
           RRR4       R#   + '       g   i     R# ; i)l   @~z
2021-01-01tzNz;Cannot subtract tz-naive and tz-aware datetime-like objectsr   )r	   r
   r(   to_datetime64r    r!   	TypeError)r   tz_naive_fixturetdtsotherr)   s   &&    r   test_rsub_dtscalars+TestTimestampArithmetic.test_rsub_dtscalarsZ   s    }%|(89zR""$r)R///#&&(2-333OCy44##%* 5444s   B::C	c                    \        R ^
^4      p\        \        R ^
^4      4      pW!,
          P                  ^8X  g   Q hW,
          P                  R8X  g   Q hR# )  N)r   r
   days)r   dtr;   s   &  r   test_timestamp_sub_datetime3TestTimestampArithmetic.test_timestamp_sub_datetimei   sK    dB#xb"-.~~"""~~###r   c                    \        R 4      p\        R^
^^\        P                  R7      pW,
          p\	        V\
        4      '       g   Q hV\        R4      8X  g   Q hR# )z2020-10-22T22:00:00+00:00i  tzinfoz0 daysN)r
   r   r   utc
isinstancer	   r   t1t2r1   s   &   r   test_subtract_tzaware_datetime6TestTimestampArithmetic.test_subtract_tzaware_datetimeo   sP    23dBBx||<&),,,,8,,,,r   c                    \        R 4      P                  R4      p\        R 4      P                  R4      pW,
          p\        V\        4      '       g   Q hV\        R4      8X  g   Q hR# )20130101
US/EasternCET0 days 06:00:00N)r
   tz_localizerJ   r	   rK   s   &   r   /test_subtract_timestamp_from_different_timezoneGTestTimestampArithmetic.test_subtract_timestamp_from_different_timezonex   sZ    z"..|<z"..u5&),,,,#45555r   c                F   \        R ^^\        \        RR7      4      R7      p\        R4      P	                  R4      pW,
          p\        V\        4      '       g   Q hV\        R4      8X  g   Q hW!,
          p\        V\        4      '       g   Q hV\        R4      8X  g   Q hR# )	r@   hoursrG   rQ   rS   rT   z-1 days +18:00:00N)r   r   r   r
   rU   rJ   r	   rK   s   &   r   5test_subtracting_involving_datetime_with_different_tzMTestTimestampArithmetic.test_subtracting_involving_datetime_with_different_tz   s    dAq)"2E)FGz"..u5&),,,,#45555&),,,,#67777r   c                    \        R 4      pVP                  R4      pVP                  V4      \        R4      ,           pWC,
          p\	        V\        4      '       g   Q hV\        R4      8X  g   Q hR# )rQ   UTCz0 days 05:00:00N)r
   rU   
tz_convertr	   rJ   )r   tz_aware_fixturet_rawt_UTCt_diffr1   s   &&    r   $test_subtracting_different_timezones<TestTimestampArithmetic.test_subtracting_different_timezones   sf    *%!!%(!!"23i@Q6RR&),,,,#45555r   c                   \        R ^^4      p\        ^R7      p\        V4      pRp\        P                  ! \
        VR7      ;_uu_ 4        V^,            RRR4       \        P                  ! \
        VR7      ;_uu_ 4        V^,
           RRR4       \        W1,
          4      \        8X  g   Q h\        W2,           4      \        8X  g   Q h\        W2,
          4      \        8X  g   Q h\        P                  ! ^R4      p\        W5,           4      \        8X  g   Q h\        W5,
          4      \        8X  g   Q hR#   + '       g   i     L; i  + '       g   i     L; i)i  )secondsz Addition/subtraction of integersr   Nr   )
r   r   r
   r    r!   r8   typer	   nptimedelta64)r   rC   r:   r;   r)   td64s   &     r   test_addition_subtraction_types7TestTimestampArithmetic.test_addition_subtraction_types   s     dAq!q!r]0]]9C00F 1 ]]9C00F 1
 BG}	)))BG}	)))BG}	))) ~~a%BI)+++BI)+++! 10 10s   
D8
E8E	E	r:   rY   hc                4    TpW,           W1,           8X  g   Q hR # )N )r   r:   fixed_now_tsr;   s   &&& r   test_radd_tdscalar*TestTimestampArithmetic.test_radd_tdscalar   s    
 w"'!!!r   zother,expected_differencer   iIusmsc                   \         P                  ! \        P                  4      p\	        V4      P                  R 4      pWA,           pVP                  VP                  ,
          pWb8X  g   Q h\	        V4      pWq,           V8X  g   Q hR# )r   N)r   nowr   rI   r
   r   _value)r   r<   expected_differencerx   r;   r1   valdiffts2s   &&&     r   #test_timestamp_add_timedelta64_unit;TestTimestampArithmetic.test_timestamp_add_timedelta64_unit   sh     ll8<<(s^##D)--"))+---n{f$$$r   r;   z
1776-07-04r_   r5   r<   dtypec                P   R p\         P                  ! \        VR7      ;_uu_ 4        W,            RRR4       \         P                  ! \        VR7      ;_uu_ 4        W!,            RRR4       \         P                  ! \        VR7      ;_uu_ 4        W,
           RRR4       Rp\         P                  ! \        VR7      ;_uu_ 4        W!,
           RRR4       R#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     Lo; i  + '       g   i     R# ; i)z3Addition/subtraction of integers and integer-arraysr   Nzunsupported operand type)r    r!   r8   )r   r;   r<   r)   s   &&& r   test_add_int_with_freq.TestTimestampArithmetic.test_add_int_with_freq   s    " D]]9C00J 1]]9C00J 1 ]]9C00J 1 )]]9C00J 10 1000 10 100s/   	C	C.	D	DC+	.C>	D	D%	shapec                   \        R 4      P                  R4      p\        P                  ! ^4      P	                  R4      P                  V4      pW#,           p\        ^4       Uu. uF  qR\        VR7      ,           NK  	  pp\        P                  ! V Uu. uF  qwP                  NK  	  upRR7      P                  V4      p\        P                  ! WH4       W2,           p\        P                  ! WH4       W#,
          p\        ^4       Uu. uF  qR\        VR7      ,
          NK  	  pp\        P                  ! V Uu. uF  qwP                  NK  	  upRR7      P                  V4      p\        P                  ! WH4       Rp	\        P                  ! \        V	R7      ;_uu_ 4        W2,
           RRR4       R# u upi u upi u upi u upi   + '       g   i     R# ; i)	2020-04-04 15:45r   m8[h]rY   zM8[ns]r   Dunsupported operand type\(s\) for -: 'numpy.ndarray' and 'Timestamp'r   N)r
   r   rj   arangeastypereshaperanger	   arrayasm8tmassert_numpy_array_equalr    r!   r8   )
r   r   r;   r<   r1   n	ex_stampsxr   r)   s
   &&        r   test_addsub_m8ndarray-TestTimestampArithmetic.test_addsub_m8ndarray   s]    )*2248		!##G,44U;6;Ah?h)!,,,h	?88Y7YVVY7xHPPQVW
##F5
##F56;Ah?h)!,,,h	?88Y7YVVY7xHPPQVW
##F5U]]9C00J 10 @7 @7 100s$   $F6F;
G ;G#	G

G	c                "   \        R RR7      p\        P                  ! ^4      P                  R4      P	                  V4      pW#,           p\        ^4       Uu. uF  qR\        VR7      ,           NK  	  pp\        P                  ! V4      P	                  V4      p\        P                  ! WG4       W2,           p\        P                  ! WG4       W#,
          p\        ^4       Uu. uF  qR\        VR7      ,
          NK  	  pp\        P                  ! V4      P	                  V4      p\        P                  ! WG4       Rp\        P                  ! \        VR7      ;_uu_ 4        W2,
           RRR4       R# u upi u upi   + '       g   i     R# ; i)r   z
US/Pacificr5   r   rY   r   r   N)r
   rj   r   r   r   r   r	   r   r   r   r    r!   r8   )	r   r   r;   r<   r1   r   r   r   r)   s	   &&       r   test_addsub_m8ndarray_tzaware5TestTimestampArithmetic.test_addsub_m8ndarray_tzaware  s&    )l;		!##G,44U;6;Ah?h)!,,,h	?88I&..u5
##F5
##F56;Ah?h)!,,,h	?88I&..u5
##F5U]]9C00J 10 @ @
 100s   E3"E8 	E==F	c                    \        R ^^4      p\        W1R7      p\        W2R7      pWE,
          p\        ^ 4      pWg8X  g   Q hR# )i  r5   N)r   r
   r	   )r   utc_fixtureutc_fixture2rC   ts1r|   r1   r   s   &&&     r   #test_subtract_different_utc_objects;TestTimestampArithmetic.test_subtract_different_utc_objects  s@    dAq!+,Q<!!!r   r6   zpytz/US/EasternrR   zdateutil/US/Easternc                6   \        V\        4      '       dN   VP                  R 4      '       d7   \        P                  ! R4      pVP                  VP                  R 4      4      p\        RVR7      pV\        ^R7      ,           p\        RVR7      pWE8X  g   Q hR# )zpytz/pytzz3/10/2012 22:00r5   rY   z3/11/2012 05:00N)	rJ   str
startswithr    importorskipr   removeprefixr
   r   )r   r6   r   r   r1   r   s   &&    r   3test_timestamp_add_timedelta_push_over_dst_boundaryKTestTimestampArithmetic.test_timestamp_add_timedelta_push_over_dst_boundary%  s}     b#2==#9#9&&v.Drw78B+3++ .26!!!r   c                    R pRp\        WR7      pV\        ^ R7      ,           pW48X  g   Q h\        V4      \        V4      8X  g   Q hR# )z2023-11-05 01:00-08:00zAmerica/Los_Angelesr5   rY   N)r
   r	   hash)r   dt_strtz_strr   r|   s   &    r   test_timestamp_dst_transition5TestTimestampArithmetic.test_timestamp_dst_transition=  sE    )&*IA&&zzCyDI%%%r   rq   Niii@+)   )      )&__name__
__module____qualname____firstlineno__r   r%   r,   r2   r=   rD   rN   rV   r\   re   rm   r    markparametrizer	   rj   rk   r   rs   r}   r
   int64r   int32uint64r   r   r   r   r   r   r   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s.    6!$F
B3
+$-686,4 [[yq!2>>!S#991;MN""
 [[#^^D$'.^^J-z:^^D$'1^^D$'4		
%% [[l#lu-	
 [[HHQKHHaV288,HHaV299-		
  [[WtVn5 6. [[WtVn5 60" [[,!		
""	& 	&r   r   c                       ] tR tRtRtR# )SubDatetimeiI  rq   N)r   r   r   r   r   rq   r   r   r   r   I  s    r   r   zlh,rh  rY   c                 B    W,           p\        R ^^^4      pW#8X  g   Q hR# )r   N)r   )lhrhr1   r   s   &&  r   test_dt_subclass_add_timedeltar   M  s'     WF4Aq)Hr   )r   r   r   dateutil.tzr   numpyrj   r    pandas._libs.tslibsr   r   r	   r
   r   r   pandas._testing_testingr   r   r   r   r   r   rq   r   r   <module>r      s         o& o&d		( 	 	T1a	 )!"45		[q!45r   