+
    xȇi$                        R t ^ RIHt ^ RIt^ RIHt ^ RIHtHtH	t	H
t
HtHtHtHtHtHtHtHtHtHtHtHtHtHtHtHt ^ RIHt ^ RIHt ]P@                  ! R4      t!R t" ! R R	4      t#]PH                  PK                  R
]! R4      ]! R4      ]! ^4      R3]! R4      ]! R4      ]! R4      R3]! R4      ]! R4      ]! ^RR7      R3]! R4      ]! R4      ]! ^^R7      R3.4      R 4       t&R t'R# )z;
Tests for DateOffset additions over Daylight Savings Time
)	timedeltaN	Timestamp)BMonthBegin	BMonthEndBQuarterBeginBQuarterEnd
BYearBeginBYearEndCBMonthBegin
CBMonthEndCustomBusinessDay
DateOffsetDay
MonthBeginMonthEndQuarterBegin
QuarterEndSemiMonthBeginSemiMonthEndWeek	YearBeginYearEnd)DatetimeIndexpytzc                     V P                  4       pVP                  ^,          R,          VP                  ,           R,          # )   i  g      @)	utcoffsetdaysseconds)tsos   & u/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/tseries/offsets/test_dst.pyget_utc_offset_hoursr#   '   s.    
AFFRK$*f44    c                     a  ] tR t^-t o RtRt]P                  R4      RRRR/RRRRR//t. ROt	. R Ot
R tR tR	 tR
 tR tR t/ ]RR.b]RR.b]RR.b]RR.b]RR.b]RR.b]RR.b]RR.b]RR.b]RR.b]RR.b]RR.b]RR.b]RR.b]RR.b] RR.b]!RR.b]"RR./CPG                  4       t$]%PL                  PO                  R]$4      R 4       t(Rt)V t*R# )!TestDST2013-11-03 01:59:59.999999z2013-03-10 01:59:59.999999
US/Easternutc_offset_daylightutc_offset_standardzdateutil/US/Pacificc           
         V^8  d   V P                   MV P                  pV F  pV P                  ! RRVRVRV/VB  K  	  R# )   offset_nameoffset_nperformance_warningN )valid_date_offsets_pluralvalid_date_offsets_singular_test_offset)selfnr/   kwdsvalid_offsetsnames   &&&,  r"   _test_all_offsetsTestDST._test_all_offsetsL   sb     1u **11 	 "D   %8 	 "r$   c           	     j   \        R/ W/B pVR9   d   V^8X  d   V\        R\        P                  R4      R7      8X  d   R RRRRR	RR
/V,          p\        P
                  ! \        VR7      ;_uu_ 4        W6,            RRR4       \        V.4      pRp	\        P
                  ! \        VR7      ;_uu_ 4        \        P                  ! WYR7      ;_uu_ 4        W,            RRR4       RRR4       R# W6,           p
Ve   \        V
4      V8X  g   Q hVR8X  d   V
P                  4       \        ^VP                  R,          ,          R7      VP                  4       ,           8X  g   Q hV
P                  VP                  8X  dR   V
P                  VP                  8X  d7   V
P                   VP                   8X  d   V
P"                  VP"                  8X  g   Q hR# VR8X  d   \        VP                  R,          4      VP                  4       ,           V
P                  4       8X  g   Q hV
P                  VP                  8X  d7   V
P                   VP                   8X  d   V
P"                  VP"                  8X  g   Q hR# WP$                  9   d0   \'        YR8w  d   TMR4      pWP                  V,          8X  g   Q hR# WP)                  R4      V,           P)                  \        P                  R4      4      8X  g   Q hR#   + '       g   i     EL; i  + '       g   i     EL5; i  + '       g   i     R# ; i)hourminutesecondmicrosecondz2013-11-03 01:59:59.999999-0500r(   tzr'   z2013-11-03 01:01:59.999999z2013-11-03 01:59:01.999999z2013-11-03 01:59:59.000001matchNzNon-vectorized DateOffsetweeks)r   r   weekday	dayofweekUTCz
US/Pacificr0   )r<   r=   r>   r?   )r   r   r   timezonepytestraises
ValueErrorr   tmassert_produces_warningr#   dater   r6   rF   r<   r=   r>   r2   getattr
tz_convert)r4   r-   r.   tstartexpected_utc_offsetr/   offseterr_msgdtiwarn_msgtdatepart_offsets   &&&&&&      r"   r3   TestDST._test_offset[   s    6{56 FFA1dmmL6Q 466;	
 G z99 :  )C2Hz99//0CTTL U : O*'*.AAAA'!668ya&++g2F.FG&++-WWWW v///FFfkk)HH-HH-	. .F"V[[01FKKMAQVVXMMM &++%HH-HH-.-<<<%":;O #kk+&>>>> **51F:FFl+   U :99 UTT :9 s0   5	K98 L!	L	!L!9L
	L	L!!L2	c                z    V^ 8  d   VR R2pMRVR,          R R2p\        W,           4      P                  V4      # )    02d00-02)r   rP   )r4   string
hrs_offsetrA   offset_strings   &&&& r"   _make_timestampTestDST._make_timestamp   sF    ?)#.b1Mb"5R8M/0;;B??r$   c           
         V P                   P                  4        FF  w  r#VR ,          pVR,          pV P                  ^VV P                  V P                  WB4      VR7       KH  	  R# )r*   r)   r5   r/   rQ   rR   Ntimezone_utc_offsetsitemsr9   rd   ts_pre_springfwd)r4   r/   rA   utc_offsetshrs_prehrs_posts   &&    r"   test_springforward_plural!TestDST.test_springforward_plural   sf    #88>>@OB!"78G"#89H""$7++D,A,A7O$,	 #   Ar$   c           
         V P                   P                  4        F=  w  r#VR ,          pV P                  ^VV P                  V P                  WB4      RR7       K?  	  R# r*   Nrg   )ri   rj   r9   rd   ts_pre_fallbackr4   r/   rA   rl   rm   s   &&   r"   test_fallback_singularTestDST.test_fallback_singular   s]      $88>>@OB!"78G""$7++D,@,@'N$(	 #   Ar$   c           
         V P                   P                  4        F=  w  r#VR ,          pV P                  ^VV P                  V P                  WB4      RR7       K?  	  R# rr   rh   rt   s   &&   r"   test_springforward_singular#TestDST.test_springforward_singular   s[    #88>>@OB!"78G""$7++D,A,A7O$(	 #   Ar$   z	11/2/2012z	12/1/2012z
11/30/2012z	12/3/2012z
11/15/2012z	11/9/2012z1/1/2013z
12/31/2012z	11/4/2012z	11/5/2012tupc                    Vw  r#\        V^ ,          RR7      V! 4       ,           p\        V^,          RR7      pWE8X  g   Q hR# )r[   r(   r@   Nr   )r4   rz   rS   test_valuesfirstr>   s   &&    r"   test_all_offset_classesTestDST.test_all_offset_classes   s;    !+a.\:VXE;q>l;r$   r0   Nii)rE   dayr<   r=   r>   r?   )rD   r   hoursminutesr   millisecondsmicroseconds)+__name__
__module____qualname____firstlineno__rs   rk   r   rH   ri   r2   r1   r9   r3   rd   ro   ru   rx   r   r   r   r   r   r   r   r   r   r   r   r	   r
   r   r   r   r   r   rj   offset_classesrI   markparametrizer~   __static_attributes____classdictcell__)__classdict__s   @r"   r&   r&   -   s    2O3 	l#!2!2&
 	 5r;PRTU#!@D@
[+.;- 	k;/ 	K.	
 	{K0 	[,/ 	l3 	{L1 	{K( 	K, 	+|, 	[*- 	;- 	{K0 	[,/  	[1!" 	k<0#$ 	k;'%& eg' * [[UN3 4r$   r&   z"original_dt, target_dt, offset, tzz2021-10-01 01:15z2021-10-31 01:15zEurope/Londonz2010-12-05 02:59z2010-10-31 02:59zEurope/Parisz2021-10-31 01:20z2021-11-07 01:20zSun Mon)weekmaskr(   z2020-04-03 01:30z2020-11-01 01:30)monthzAmerica/Chicagoc                     V P                  V4      pR V R2p\        P                  ! \        VR7      ;_uu_ 4        WB,            RRR4       R#   + '       g   i     R# ; i)zCannot infer dst time from z$, try using the 'ambiguous' argumentrB   N)tz_localizerI   rJ   rK   )original_dt	target_dtrS   rA   localized_dtmsgs   &&&&  r"   -test_nontick_offset_with_ambiguous_time_errorr      sJ    @ **2.L'	{2V
WC	z	-	- 
.	-	-	-s   	AA 	c                      \        R RR7      p Rp\        P                  ! \        VR7      ;_uu_ 4        V \	        ^4      ,            RRR4       R#   + '       g   i     R# ; i)z2015-03-28T2:30zEurope/Warsawr@   z2is a nonexistent time due to daylight savings timerB   N)r   rI   rJ   rK   r   )r    r   s     r"   test_add_day_nonexistent_raisesr     sA     
$	9B
>C	z	-	-
SV 
.	-	-	-s   AA"	)(__doc__datetimer   rI   pandas._libs.tslibsr   pandas._libs.tslibs.offsetsr   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   pandasr   pandas._testing_testingrL   importorskipr   r#   r&   r   r   r   r   r0   r$   r"   <module>r      s      )     . ! 6"5u up ( ()()QK		
 ()()		
 ()()a)4		
 ()()ar"		
':;:r$   