+
    xȇi-                       R t ^ RIt^ RIHt ^ RIHtHtHtHt ^ RIH	t	 ^ RI
t
^ RIt^ RIHt ^ RIt^ RIt^ RIHt ^ RIHtHt ^ RIHtHt ^ R	IHtHt ^ RIHu Ht ^ R
I H!t! ^ RI"t#^ RI"H$t$H%t%H&t&H't'H(t(H)t)H*t*H+t+H,t, ^ RI-H.t/ ^ RI0H1t1 ^ RI2H3t4 ^ RI5H6t6 Rt7]'       d   Rt8Rt9MRt8Rt9 ! R R4      t: ! R R4      t; ! R R4      t< ! R R4      t= ! R R4      t> ! R R4      t? ! R  R!4      t@ ! R" R#4      tA ! R$ R%4      tB]P                  ! . R^OR&7      R' 4       tD]P                  R( 4       tE ! R) R*4      tF ! R+ R,4      tGR- tH]P                  P                  R.]P                  ]L.4      R/ 4       tM]P                  P                  R0R1R2.4      ]P                  P                  R3. R_OR43. R`OR53.R6R7.R87      R9 4       4       tNR: tOR; tP]P                  P                  R<^(]6]6^,           ]6^,           .4      R= 4       tQR> tRR? tSR@ tT]P                  P                  RARBRC.4      ]P                  P                  RDR7RE.4      RF 4       4       tURG tVRH tWRI tXRJ tYRK tZRL t[RM t\RN t]RO t^RP t_RQ t`RR taRS tbRTtc])! ]c4      td]P                  P                  RU4      ]P                  P                  RV]c])! ]c4      .RW R87      ]P                  P                  RX]cRRa ]dP                  R4      ]dP                  4       ]dP                  ]dP                  ]i! ]dP                  4      .RY R87      ]P                  P                  RZRBRC.4      R[ 4       4       4       4       tjR\ tkR] tlR# )bztest to_datetimeN)deque)datedatetime	timedeltatimezone)Decimal)parse)tslib)iNaTparsing)PY314WASM)OutOfBoundsDatetimeOutOfBoundsTimedelta)is_datetime64_ns_dtype)		DataFrameDatetimeIndexIndexNaTSeries	Timestamp
date_rangeisnato_datetime)DatetimeArray)	datetimes)start_caching_ata_  You might want to try:\n    - passing `format` if your strings have a consistent format;\n    - passing `format=\'ISO8601\'` if your strings are all ISO8601 but not necessarily in exactly the same format;\n    - passing `format=\'mixed\'`, and the format will be inferred for each element individually. You might want to use `dayfirst` alongside this.z, not 99zIday \d{1,2} must be in range 1\.\.\d{1,2} for month \d{1,2} in year \d{4} zday is out of range for monthc                     a  ] tR t^Jt o R t]P                  P                  RR]! R4      ]! R4      ]! R4      ..R]! R4      ]! R4      ]! R	4      ...4      R
 4       t	]P                  P                  R. RsO. RtO. RuO. RvO. RwO. RxO.4      R 4       t
R tR tR tR tR t]P                  P                  R. RyORR]P"                  .RR].. RzO. R{ORR]P"                  .RR].. R|O.4      R 4       t]P                  P                  RR]P"                  RR.]! R4      ]P"                  ]P"                  ]P"                  ..RRR]P"                  .]! R4      ]P"                  ]P"                  ]P"                  ..R]P"                  RR.]! R 4      ]P"                  ]P"                  ]P"                  ..RR]P"                  R.]! R 4      ]P"                  ]P"                  ]P"                  ...4      R! 4       t]P                  P                  R"]P,                  .R#R.3]P,                  .RR.3]P,                  R$.R#RR%.3R&]P,                  .R'R(R.3R&]P,                  .R)R*R.3R]P"                  ]P,                  .R. R}O3R]P"                  ]P,                  .R+. R}O3.4      R, 4       tR- tR. tR/ t]P                  P                  R0R1R2]! R34      .R4R5]! R64      .R7R8]! R94      .]P6                  ! R:R;]! R<4      ]P                  P9                  ]P<                  ! 4       ^ ,          R~9   R=R>R?7      R@7      ]P6                  ! RAR;]! RB4      ]P                  P9                  ]P<                  ! 4       ^ ,          R~9   R=R>R?7      R@7      ]P6                  ! RCRD]! RE4      ]P                  P9                  ]P<                  ! 4       ^ ,          R~9   R=R>R?7      R@7      .4      RF 4       t] PB                  RG 4       t"]P                  P                  RRH]! RI^^4      3RJ]! RI^^4      3RK]! RI^^^4      3RL]! RI^^^4      3RM]! RI^^^^"4      3RN]! RI^^^^"4      3RO]! RI^^^^"^84      3RP]! RI^^^^"^84      3RQ]! RI^^^^"^8RR4      3RS]! RI^^^^"^8RR4      3RT]! RI^^^^"^8RRRURV7      3RW]! RI^^^^"^8RRRURV7      3.4      RX 4       t#]P                  P                  RY. RO4      RZ 4       t$]P                  P                  R[. RO. RO.4      R\ 4       t%]P                  P                  R]R^R_.^,          ]! R`RaRV7      .^,          .RbRc.^,          ]! R`]&! ]'! ^<Rd7      4      Re7      .^,          .RfRg.^,          ]! R`]&! ]'! ^<Rd7      4      Re7      .^,          .RfRhRh.]! R`]&! ]'! ^ Rd7      4      Re7      ]! R`]&! ]'! ^ Rd7      4      Re7      ...4      Ri 4       t(]P                  P                  R]R^. RO]! R`RaRV7      ]! R`RjRV7      ]! R`RkRV7      ..RfRgRl.]! R`]&! ]'! ^<Rd7      4      Re7      ]! R`]&! ]'! RRd7      4      Re7      ...4      Rm 4       t)Rn t*]P                  P                  Ro. RO4      Rp 4       t+Rq t,Rrt-V t.R# )TestTimeConversionFormatsc                    \         P                  ! . \        R 7      pVP                  VR7       \	        V4      p\	        . 4      p\
        P                  ! W44       R# )dtype)writeN)nparrayobjectsetflagsr   tmassert_index_equal)selfwritablearrresultexpecteds   &&   s/Users/max/.openclaw/workspace/postharvest/venv/lib/python3.14/site-packages/pandas/tests/tools/test_to_datetime.pytest_to_datetime_readonly3TestTimeConversionFormats.test_to_datetime_readonlyK   sA    hhr(8$S!r?
f/    zformat, expected%d/%m/%Y200001012000020120000301%m/%d/%Y2000010220000103c                p    V! . RO4      p\        WSVR7      pV! V4      p\        P                  ! Wd4       R# )1/1/2000formatcacheN)r;   1/2/20001/3/2000)r   r(   assert_equal)r*   r>   index_or_seriesr=   r.   valuesr-   s   &&&&&  r/   test_to_datetime_format1TestTimeConversionFormats.test_to_datetime_formatS   s1     !!EFV%@"8,
)r2   zarg, expected, formatc                F    \        W$VR 7      p\        V4      pWS8X  g   Q hR# r<   Nr   r   )r*   r>   argr.   r=   r-   s   &&&&& r/   test_to_datetime_format_scalar8TestTimeConversionFormats.test_to_datetime_format_scalarf   s&     Su=X&!!!r2   c                l   \        R R .R.^,          ,           4      p\        VP                  \        4       Uu. uF  p\        V4      NK  	  up4      p\	        VRVR7      p\
        P                  ! WT4       \	        VP                  \        4      RVR7      p\
        P                  ! WT4       R# u upi )$.9G.%Y%m%dr<   Nr   applystrr   r   r(   assert_series_equalr*   r>   serxr.   r-   s   &&    r/    test_to_datetime_format_YYYYMMDD:TestTimeConversionFormats.test_to_datetime_format_YYYYMMDDv   s    h)XJN:;3@A9Q<@AS?
v0SYYs^HEJ
v0 As   B1c                   \        R R .R.^,          ,           RR7      p\        \        R4      \        R4      .\        R4      .^,          ,           RR7      p\        P                  V^&   \        P                  V^&   \	        VRVR7      p\
        P                  ! WC4       VP                  \        4      pR	V^&   \        P                  ! \        R
R7      ;_uu_ 4        \	        VRVR7       RRR4       R#   + '       g   i     R# ; i)rM   rN   floatr!   1980122219810105M8[us]rO   r<   natzBunconverted data remains when parsing with format "%Y%m%d": ".0". matchN)r   r   r$   nanr   r(   rS   rQ   rR   pytestraises
ValueError)r*   r>   rU   r.   r-   ser2s   &&    r/   )test_to_datetime_format_YYYYMMDD_with_natCTestTimeConversionFormats.test_to_datetime_format_YYYYMMDD_with_nat   s    h)XJN:'Jz"Ij$9:$%)*

 ffAS?
v0 yy~Q]]T
 
 XU;
 
 
 
s    C99D
	c                H   \        R R .R.^,          ,           RR7      p\        \        R4      \        R4      .\        R4      .^,          ,           RR7      p\        P                  V^&   \        P                  V^&   \	        VRVR7      p\
        P                  ! WC4       R	# )
i| i rZ   r!   1980120119810101r]   %Y%mr<   N)r   r   r$   ra   r   r(   rS   )r*   r>   rU   r.   r-   s   &&   r/   'test_to_datetime_format_YYYYMM_with_natATestTimeConversionFormats.test_to_datetime_format_YYYYMM_with_nat   s     ff%14GDz"Ij$9:$%)*

 ffASu=
v0r2   c                    \        . RO4      p\        VRRVR7      p\        \        P                  ! . R	ORR7      RR7      p\        P
                  ! W44       R# )
3rO   raiser=   errorsr>   M8[s]r!   r]   N)ro   T3i)z
2012-12-31
2014-12-31z
9999-12-31)r   r   r$   r%   r(   rS   r*   r>   rU   r-   r.   s   &&   r/   +test_to_datetime_format_YYYYMMDD_oob_for_nsETestTimeConversionFormats.test_to_datetime_format_YYYYMMDD_oob_for_ns   sK     34S'OHH?wO
 	v0r2   c                    \        . RO4      p\        VRRVR7      p\        . RORR7      p\        P                  ! W44       R# )	ro   rO   coercerq   r]   r!   N)ro   rt   l   ]'l
F3YHqS )2012123120141231r   r   r   r(   rS   rv   s   &&   r/   )test_to_datetime_format_YYYYMMDD_coercionCTestTimeConversionFormats.test_to_datetime_format_YYYYMMDD_coercion   s:     LMS(%P9J
v0r2   input_sr[   20010112Nr   rM   T1c                    \        \        R 4      \        R4      \        .4      p\        \        VRR7      4      p\        P
                  ! W24       R# )r[   r   rO   r=   N)r   r   r   r   r(   rS   r*   r   r.   r-   s   &&  r/   *test_to_datetime_format_YYYYMMDD_with_noneDTestTimeConversionFormats.test_to_datetime_format_YYYYMMDD_with_none   s>    & 9Z0)J2GMNGH=>
v0r2   zinput_s, expected2001001210019999i]4iT1i{120190813c                z    \        V4      p\        VR RR7      p\        V4      p\        P                  ! W24       R# )rO   rz   r=   rr   Nr}   r   s   &&& r/   )test_to_datetime_format_YYYYMMDD_overflowCTestTimeConversionFormats.test_to_datetime_format_YYYYMMDD_overflow   s3    8 /WXhG(#
v0r2   zdata, format, expectedz%Y%m%d%H%M%S20210202202020z2021-02-02 20:20:20201010z%y%m%dz
2020-10-10z%d%m%y
2010-10-20rO   c                `    \        WR 7      p\        V4      p\        P                  ! WC4       R# r   Nr   r   r(   r)   )r*   datar=   r.   r-   s   &&&& r/   test_to_datetime_with_NA2TestTimeConversionFormats.test_to_datetime_with_NA   s&    $ T1 *
f/r2   c                    \        R \        P                  .4      p\        RR.4      p\        P
                  ! W4       R# )r   r   r   N)r   pdNAr   r(   r)   r*   r-   r.   s   &  r/   %test_to_datetime_with_NA_with_warning?TestTimeConversionFormats.test_to_datetime_with_NA_with_warning
  s2    h./ ,!67
f/r2   c           
        \        . RO4      p\        VP                  \        4       Uu. uF  p\        V4      NK  	  up4      p\	        VRVR7      p\
        P                  ! WT4       \        . R	O4      p\        VP                  \        4       Uu. uF*  p\        VR,          R,           VR,          ,           4      NK,  	  up4      p\	        VRVR7      p\
        P                  ! WT4       R# u upi u upi )
  z%Yr<   :N   N-:r   NNrk   N)r     i  )iA i i rP   rT   s   &&    r/   test_to_datetime_format_integer9TestTimeConversionFormats.test_to_datetime_format_integer  s    '(3@A9Q<@ASU;
v0-.399S>R>a9QrUS[1R5%89>RSSu=
v0 A Ss   C/0C4c                    \         P                  ^,          pRV R2pRp\        W4VR7      p\        P                  ! W44      pWV8X  g   Q hR# )r   z01-z-2011 00:00:01.978z%d-%b-%Y %H:%M:%S.%fr<   N)calendar
month_abbrr   r   strptime)r*   r>   r   valr=   r-   exps   &&     r/   #test_to_datetime_format_microsecond=TestTimeConversionFormats.test_to_datetime_format_microsecond  sL    ((+
J<12'Su=,}}r2   zvalue, format, dtz01/10/2010 15:20z%m/%d/%Y %H:%Mz2010-01-10 15:20z01/10/2010 05:43z%m/%d/%Y %I:%Mz2010-01-10 05:43z01/10/2010 13:56:01z%m/%d/%Y %H:%M:%Sz2010-01-10 13:56:01z01/10/2010 08:14 PMz%m/%d/%Y %I:%M %pz2010-01-10 20:14z4fail on a CI build with LC_ALL=zh_CN.utf8/it_IT.utf8F)reasonstrict)marksz01/10/2010 07:40 AMz2010-01-10 07:40z01/10/2010 09:12:56 AMz%m/%d/%Y %I:%M:%S %pz2010-01-10 09:12:56c                .    \        W#VR 7      V8X  g   Q hR# rG   r   )r*   r>   valuer=   dts   &&&&&r/   test_to_datetime_format_time6TestTimeConversionFormats.test_to_datetime_format_time'  s    Z 5u=CCCr2   c                    \        . RO4      p\        VRRVR7      p\        VP                  P                  RRR7      RVR7      p\        P
                  ! W44       R# )	19MAY11z%d%b%yFr=   exactr>   z(\d+\w+\d+))expandr<   N)r   foobar19MAY11z19MAY11:00:00:00z19MAY11 00:00:00Z)r   r   rR   extractr(   rS   rv   s   &&   r/   test_to_datetime_with_non_exact9TestTimeConversionFormats.test_to_datetime_with_non_exactV  sV    
 Q
 SeLGGOON5O9(RW
 	v0r2   %Y-%m-%dr   %Y-%d-%m%Y-%m-%d %Hz%Y-%d-%m %H%Y-%m-%d %H:%Mz%Y-%d-%m %H:%M%Y-%m-%d %H:%M:%S%Y-%d-%m %H:%M:%S%Y-%m-%d %H:%M:%S.%f@ z%Y-%d-%m %H:%M:%S.%f%Y-%m-%d %H:%M:%S.%f%z	UTC+01:00tzz%Y-%d-%m %H:%M:%S.%f%zc                2    \        R VRR7      pWC8X  g   Q hR# )z 2000-01-03 12:34:56.123456+01:00Fr=   r   Nr   )r*   r>   r=   r.   r-   s   &&&& r/   (test_non_exact_doesnt_parse_whole_stringBTestTimeConversionFormats.test_non_exact_doesnt_parse_whole_stringd  s#    4 .vU
 !!!r2   rI   c                J    \        W!R 7      p\        VRVR7      pWC8X  g   Q hR# )r>   r   r<   Nr   )r*   r>   rI   r.   r-   s   &&&  r/   #test_parse_nanoseconds_with_formula=TestTimeConversionFormats.test_parse_nanoseconds_with_formula  s)     s0S)?uM!!!r2   zvalue,fmt,expectedc                @    \        WVR 7      \        V4      8X  g   Q hR# rG   rH   )r*   r   fmtr.   r>   s   &&&&&r/   test_to_datetime_format_weeks7TestTimeConversionFormats.test_to_datetime_format_weeks  s     5E:i>QQQQr2   zfmt,dates,expected_datesz%Y-%m-%d %H:%M:%S %Z2010-01-01 12:00:00 UTC2010-01-01 12:00:00UTC%Y-%m-%d %H:%M:%S%zz2010-01-01 12:00:00+0100minutestzinfo%Y-%m-%d %H:%M:%S %z2010-01-01 12:00:00 +01002010-01-01 12:00:00 Zc                `    \        W!R 7      p\        V4      p\        P                  ! WE4       R# r   )r   r   r(   rA   )r*   r   datesexpected_datesr-   r.   s   &&&&  r/   )test_to_datetime_parse_tzname_or_tzoffsetCTestTimeConversionFormats.test_to_datetime_parse_tzname_or_tzoffset  s%    X U/(
)r2   GMT
US/Pacific2010-01-01 12:00:00 -0100c                    R p\         P                  ! \        VR7      ;_uu_ 4        \        W!R7       RRR4       R#   + '       g   i     R# ; i)6Mixed timezones detected. Pass utc=True in to_datetimer_   r   Nrb   rc   rd   r   )r*   r   r   r   msgs   &&&& r/   ;test_to_datetime_parse_tzname_or_tzoffset_utc_false_removedUTestTimeConversionFormats.test_to_datetime_parse_tzname_or_tzoffset_utc_false_removed  s3    D G]]:S11* 2111	   >A	c                v    . ROp. ROpRp\        WRR7      p\        V4      p\        P                  ! WE4       R# )r   r   Tr=   utcN)r   r   z2010-01-01 12:00:00 +0300z2010-01-01 12:00:00 +0400)z2010-01-01 11:00:00+00:00z2010-01-01 13:00:00+00:00z2010-01-01 09:00:00+00:00z2010-01-01 08:00:00+00:00r   )r*   r   r   r   r-   r.   s   &     r/   =test_to_datetime_parse_tzname_or_tzoffset_different_tz_to_utcWTestTimeConversionFormats.test_to_datetime_parse_tzname_or_tzoffset_different_tz_to_utc  s;    

 %UD9 0
f/r2   offsetc                    R pRV,           pRP                  R\         R2R\         R2.4      p\        P                  ! \        VR7      ;_uu_ 4        \        V.VR7       RRR4       R#   + '       g   i     R# ; i)	r   z2010-01-01 12:00:00 |z,^time data ".*" doesn\'t match format ".*". $?^unconverted data remains when parsing with format ".*": ".*". r_   r   NjoinPARSING_ERR_MSGrb   rc   rd   r   )r*   r   r   r   r   s   &&   r/   )test_to_datetime_parse_timezone_malformedCTestTimeConversionFormats.test_to_datetime_parse_timezone_malformed  sr     %%.hh??BSSTUR"#1&
 ]]:S11s+ 2111s   A,,A=	c                    R p\        R.RR7      p\        W!R7      p\        R.RRR7      p\        P                  ! W44       R# )	r   r   foo)namer   r   r   )r   r  N)r   r   r   r(   r)   )r*   r   rI   r-   r.   s   &    r/   *test_to_datetime_parse_timezone_keeps_nameDTestTimeConversionFormats.test_to_datetime_parse_timezone_keeps_name  sA    $,-E:S- "7!8UO
f/r2    )r;   r4   r3   )r;   r4   r7   )r?   r5   r3   )r?   r8   r7   )r@   r6   r3   )r@   r9   r7   )r[   r   N)r[   r   r   )rM   r   N)rM   r   r   )r   r   r   )zh_CNit_IT)z2012-01-01 09:00:00.000000001z2012-01-01 09:00:00.000001z2012-01-01 09:00:00.001z2012-01-01 09:00:00.001000z2012-01-01 09:00:00.001000000)2009324z%Y%W%wz
2009-08-13)2013020z%Y%U%wz
2013-01-13)r   z2010-01-01 12:00:00 GMTz2010-01-01 12:00:00 US/Pacific)z+0z-1fooUTCbarz:10z
+01:000:01r   )/__name__
__module____qualname____firstlineno__r0   rb   markparametrizer   rD   rJ   rW   rf   rl   rw   r~   r$   ra   r   r   r   r   r   r   r   r   r   paramxfaillocale	getlocaler   tdskip_if_not_us_localer   r   r   r   r   r   r   r   r   r   r  __static_attributes____classdictcell____classdict__s   @r/   r   r   J   s    0 [[ :&	*(=y?TU
 :&	*(=y?TU		
** [[000000	

"
"
1<61	11 [[ +RVV,S)+&x(x%'	
11 [[ RVVZ<:&? ZRVV<:&? 2668X6:&? 8RVVX6:&?#	
21321 [[ eeWnug.eeWdUG$()-.
 <*?@<*?@BFFBEE"D*?@BFFBEE"H.CD	
 0! 001 [[!19=O3PQ!19=O3PQ%#/0 LL%#,-kk''$$&q)-??Q  ( 		 LL%#,-kk''$$&q)-??Q  ( 		 LL(&/0kk''$$&q)-??Q  ( 		=(	
+XDY+XD 1 1 [[4A./4A./IdAq"56IdAq"56yq!R<=yq!R<= )D!QB"CD )D!QB"CD#YtQ2r2v%NO#YtQ2r2v%NO($1b"b&[I
 )$1b"b&[I	
."/." [[	
	"	" [[//	
RR [[" '*+a/0U;<q@ &+,q0-hyQS?T6U
 	 ',-1-hyQS?T6U
 	 '(*AB-hyQR?S6T -hyQR?S6T	5&	
)T*U)T* [[" ' 3>3>3E ',.IJ-hyQS?T6U -hyQT?U6V		
<+=<+0( [[D,,0 0r2   r   c                   |  a  ] tR tRt o R tR t]P                  P                  R4      R 4       t	R t
R t]P                  P                  RR	R
.RR.R7      R 4       t]P                  P                  RRR.RR.R7      ]P                  P                  R]P                  ! RRR.]! RR.RR7      RR7      ]P                  ! RRR .]! RR .4      P!                  R!4      R"R7      ]P                  ! RRR .]! RR .RR7      R#R7      ]P                  ! RR$R .]! RR .RR7      R%R7      .4      ]P                  P                  R&]R' .4      R( 4       4       4       t]P                  P                  RRR.RR.R7      ]P                  P                  R&]R) .4      R* 4       4       t]P                  P                  R+]P                  ! R]! R,R-R.7      ]! R/R0R.7      ].R1R7      ]P                  ! R]! R,R-R.7      ]! R2R0R.7      ].R3R7      .4      R4 4       t]P                  P                  R+]P                  ! R]! . RORR7      R5R7      ]P                  ! R]! . RORR7      R6R7      .4      R7 4       t]P                  P                  RRR.RR.R7      ]P                  P                  R8]P                  ! RR9.R:R7      .4      ]P                  P                  R&]R; .4      R< 4       4       4       tR= t]P                  P                  R>R?R@]! RA^^^ ^ 4      .RBR@]! RC^^^ ^ 4      .RDR@]! RC^^^ ^ 4      .RER@]! RF^^^ ^ 4      .RGR@]! RF^^^ ^ 4      .RHR@]! RF^^^ ^ 4      .RIR@]! RJ^^^ ^ 4      ..4      RK 4       t]P                  P                  RL. RO. RO.4      RM 4       t]P                  P                  RL. RO. RO. RO. RO. RO. RO. RO. RO. RO. RO. RO. RO. RO. RO. RO. RO. RO. RO. RO.4      ]P                  P                  RNRORP.4      RQ 4       4       t]P                  P                  RRRSRT.4      RU 4       t]P>                  ]P                  P                  RVRR.4      ]P                  P                  RRRSRT.4      RW 4       4       4       t RX t!RY t"]P>                  ]P                  PG                  ]$RZR[7      R\ 4       4       t%]P>                  ]P                  PG                  ]$RZR[7      ]P                  P                  RRR]R^.4      R_ 4       4       4       t&]P                  P                  R`RaRb.4      Rc 4       t']P                  P                  Rd4      ]P                  PG                  ]$RZR[7      ]P                  P                  Re. RO4      ]P                  P                  RfRR.4      Rg 4       4       4       4       t(]P                  P                  Rh])PT                  ! Ri4      ])PT                  ! Rj4      .4      Rk 4       t+]P                  P                  RlRR.4      Rm 4       t,]P                  P                  Rh])PT                  ! Rn4      ])PT                  ! Ro4      .4      ]P                  P                  RNRORP.4      Rp 4       4       t-Rq t.]P                  P                  RrRsRt.4      Ru 4       t/Rv t0Rw t1Rx t2Ry t3]P                  P                  Rz]4]3]5]3])Pl                  ]3]7]73.4      R{ 4       t8]P                  P                  R|R}]! R~RVR.7      .R]! RRVR.7      ..4      R 4       t9R t:R t;]P                  P                  RRR.4      R 4       t<R t=]P                  P                  R`RR.4      R 4       t>R t?]P                  P                  R`]@]A.4      R 4       tB]P                  P                  RNRPRO.4      R 4       tC]P                  P                  RRR.4      ]P                  P                  RRSR.4      R 4       4       tD]P                  P                  RR.4      ]P                  P                  RRSR.4      R 4       4       tE]P                  P                  RR.R.. RO.4      ]P                  P                  RRSR.4      R 4       4       tF]P                  P                  RVRRS.4      ]P                  P                  RRRS.4      ]P                  P                  R&]5]G])Pl                  ]4]H.4      R 4       4       4       tIR tJ]P                  P                  RVRRS.4      ]P                  P                  RRRS.4      R 4       4       tKR tL]P                  P                  RRS])P                  3]3]N,          ,           ]3]N^,           ,          Rs3RS]! R4      P!                  Rs4      3]3]N,          ,           ]]! R4      P!                  Rs4      3]3]N,          ,           Rs3R]3]N,          ,           R]! R4      3,           ]3]N^,           ,          ]! R4      ]! R4      3,           R!334      R 4       tO]P                  P                  R]7! ].^,          RS.^,          ,           RR7      ]7! ].^<,          RS.^<,          ,           RR7      ]7! RS.^,          4      ]7! RS.^<,          4      ]7! R.^,          4      ]7! R.^<,          4      ]7! ]PP                  .^,          4      ]7! ]PP                  .^<,          4      ]7! ])P                  .^,          4      ]7! ])P                  .^<,          4      .
4      R 4       tR]P                  P                  R. RO4      R 4       tSR tT]P                  P                  RRR.4      ]P                  P                  R]! R^^4      ]U! R^^4      ])PT                  ! R4      RR.4      R 4       4       tVR tWR tXR tYR tZR t[R t\R t]]P                  P                  R]! R4      ]! RRR.7      3]! RRR.7      ]! RRR.7      3.4      R 4       t^]P                  P                  R. RO4      R 4       t_R t`R ta]P                  P                  RRR.R]! RRR.7      .R]! RJ^^^4      P                  ]cP                  ! R4      4      ..4      R 4       teRtfV tgRS# )TestToDatetimei"  c                L   . ROp\        V Uu. uF  p\        V4      P                  R4      NK  	  up4      p\        V4      p\        P                  ! WC4       \        VRR7      p\        P                  ! WS4       \        VRR7      p\        P                  ! Wc4       R# u upi )2016-01-01 01:02:03nsISO8601r   mixedN)r  z2016-01-01 01:02:03.001z2016-01-01 01:02:03.001002z2016-01-01 01:02:03.001002003)r   r   as_unitr(   r)   r   )r*   valsrV   r.   result1result2result3s   &      r/   #test_to_datetime_mixed_string_resos2TestToDatetime.test_to_datetime_mixed_string_resos#  s    
 !d!Kd)A,"6"6t"<d!KL%
g0d95
g0d73
g0 "Ls   #B!c                0    \        R 4      \        J g   Q hR # Nr   r   r*   s   &r/   test_to_datetime_none$TestToDatetime.test_to_datetime_none6  s    4 C'''r2   zignore:Could not infer formatc                   R pRp\         P                  ! \        VR7      ;_uu_ 4        \        V4       RRR4       \         P                  ! \        VR7      ;_uu_ 4        \        V.4       RRR4       \        VRR7      pV\        J g   Q h\        V.RR7      p\        \        .RR7      p\        P                  ! W44       R#   + '       g   i     L; i  + '       g   i     Lt; i)08335394550z+Parsing "08335394550" to datetime overflowsr_   Nrz   rr   rs   r!   )rb   rc   r   r   r   r   r(   r)   )r*   rI   r   resr   s   &    r/   test_to_datetime_overflow(TestToDatetime.test_to_datetime_overflow:  s    
 ;]].c:: ; ]].c:: ; #h/czz3%1SE)
c' ;: ;:s   C!CC	C*	c                8   \        R ^^^\        \        ^R7      ) 4      R7      p\        R ^^^\        \        ^R7      ) 4      R7      p\        RV.4      p\        W.4      P	                  \        \        RR7      4      4      p\
        P                  ! W44       R# )  )hoursr   z2020-01-01 17:00 -0100r   Nr
  )r   r   r   r   
tz_convertr(   r)   )r*   d1d2r3  r.   s   &    r/   *test_to_datetime_mixed_datetime_and_string9TestToDatetime.test_to_datetime_mixed_datetime_and_stringM  s    dAq"Xyq7I6I-JKdAq"Xyq7I6I-JK3R89x(33HYs=S4TU
c,r2   c                   R ^ .p\        V Uu. uF  p\        V4      NK  	  up4      p\        VRR7      p\        VRRR1,          RR7      RRR1,          p\        V4      p\        VRRR1,          4      RRR1,          p\        P                  ! WC4       \        P                  ! WS4       \        P                  ! Wc4       \        P                  ! Ws4       R# u upi )z
2016-01-01r"  r   Nr   r   r   r(   r)   )r*   r$  rV   r.   r-   r&  r'  result4s   &       r/   )test_to_datetime_mixed_string_and_numeric8TestToDatetime.test_to_datetime_mixed_string_and_numericU  s    a  !=1)A,!=>T'2d4R4j9$B$?%TrT
+DbD1
f/
g0
g0
g0 ">s   Cr=   r   r   r!  non-ISO8601idsc                    \        R ^^4      p\        RV.VR7      p\        RR.RR7      p\        P                  ! W44       R# )r7  
2020-01-01r   z
2020-01-02r]   r!   N)r   r   r   r(   r)   )r*   r=   r:  r3  r.   s   &&   r/   &test_to_datetime_mixed_date_and_string5TestToDatetime.test_to_datetime_mixed_date_and_stringc  sB    
 $1<,V< ,!=XN
c,r2   r   %Y-%d-%m %H:%M:%S%zr   znon-ISO8601 formatzISO8601 formatzutc, args, expectedTz2000-01-01 01:00:00-08:00z2000-01-01 02:00:00-08:00z2000-01-01 09:00:00+00:00z2000-01-01 10:00:00+00:00datetime64[us, UTC]r!   zall tz-aware, with utc)idFz2000-01-01 01:00:00+00:002000-01-01 02:00:00+00:00uszall tz-aware, without utcz%all tz-aware, mixed offsets, with utc2000-01-01 01:00:00z+tz-aware string, naive pydatetime, with utcconstructorc                4    \        V 4      P                  4       # r+  r   to_pydatetimerV   s   &r/   <lambda>TestToDatetime.<lambda>      il88:r2   c                    V! V^ ,          4      pV^,          p\        Wg.WR7      pV\        J d   VP                  R4      p\        P                  ! W4       R# )    r   rO  N)r   r   r#  r(   r)   )	r*   r   r   argsr.   rQ  ts1ts2r-   s	   &&&&&&   r/   6test_to_datetime_mixed_datetime_and_string_with_formatETestToDatetime.test_to_datetime_mixed_datetime_and_string_with_formatm  sP    p $q'"1gcZ=)#''-H
f/r2   c                4    \        V 4      P                  4       # r+  rS  rU  s   &r/   rV  rW    rX  r2   c                    R R.pV! V^ ,          4      pV^,          pRp\         P                  ! \        VR7      ;_uu_ 4        \        WE.VRR7       RRR4       R#   + '       g   i     R# ; i)rP  rN  r   r_   Fr   Nr   )r*   r   rQ  r[  r\  r]  r   s   &&&    r/   Mtest_to_datetime_mixed_dt_and_str_with_format_mixed_offsets_utc_false_removed\TestToDatetime.test_to_datetime_mixed_dt_and_str_with_format_mixed_offsets_utc_false_removed  sY    " &'BC$q'"1gF]]:S11
3E: 2111   AA.	zfmt, expectedz2000-01-01 09:00:00+0100r   r   z2000-01-02 02:00:00+0200z	UTC+02:00zISO8601, non-UTCz2000-02-01 02:00:00+0200znon-ISO8601, non-UTCc                    R p\         P                  ! \        VR7      ;_uu_ 4        \        . ROVRR7       RRR4       R#   + '       g   i     R# ; i)r   r_   NFr   2000-01-01 09:00:00+01:00z2000-01-02 02:00:00+02:00Nr   )r*   r   r.   r   s   &&& r/   =test_to_datetime_mixed_offsets_with_none_tz_utc_false_removedLTestToDatetime.test_to_datetime_mixed_offsets_with_none_tz_utc_false_removed  s;    8 G]]:S11P 2111   AA	zISO8601, UTCznon-ISO8601, UTCc                R    \        . ROVRR7      p\        P                  ! W24       R# )rg  NTr   rf  r   r(   r)   )r*   r   r.   r-   s   &&& r/   (test_to_datetime_mixed_offsets_with_none7TestToDatetime.test_to_datetime_mixed_offsets_with_none  s'    . L

 	f/r2   r[  z2000-01-01 02:00:00-07:00z*all tz-aware, mixed timezones, without utcc                4    \        V 4      P                  4       # r+  rS  rU  s   &r/   rV  rW    rX  r2   c                    V! V^ ,          4      pV! V^,          4      p\         P                  ! \        RR7      ;_uu_ 4        \        WE.VRR7       RRR4       R#   + '       g   i     R# ; i)rZ  z1cannot be converted to datetime64 unless utc=Truer_   Fr   Nr   )r*   r   r[  rQ  r\  r]  s   &&&&  r/   =test_to_datetime_mixed_datetime_and_string_with_format_raisesLTestToDatetime.test_to_datetime_mixed_datetime_and_string_with_format_raises  s\    0 $q'"$q'"]]Q
 
 
3E:
 
 
 
rd  c                   \         P                  ! R 4      p\        V.4      p\        RRR7      p\	        V4      V8X  g   Q h\	        VP
                  ^ ,          4      V8X  g   Q h\	        V.4      p\        V.4      p\        P                  ! WE4       \	        V4      p\        V4      p\        P                  ! WE4       R# )z2019-02-04 10:18:46.297000+0000z2019-02-04 10:18:46.297000r   r   N)
r$   str_r   r   r   ilocr   r(   r)   rS   )r*   r   rU   r   r3  r.   s   &     r/   test_to_datetime_np_str&TestToDatetime.test_to_datetime_np_str'  s     9:eWo4?5!S(((388A;'3...5'"#<
c,#(#
s-r2   zs, _format, dtz2015-1-1z%G-%V-%u  z2015-1-4  z2015-1-7z	2024-52-1i  z	2024-52-7z2025-1-1z	2020-53-1r7  c                ,    \        WR 7      V8X  g   Q hR# r   r   )r*   s_formatr   s   &&&&r/   %test_to_datetime_iso_week_year_format4TestToDatetime.test_to_datetime_iso_week_year_format;  s     1-333r2   zmsg, s, _formatc                    \         P                  ! \        VR 7      ;_uu_ 4        \        W#R7       RRR4       R#   + '       g   i     R# ; i)r_   r   Nr   )r*   r   r{  r|  s   &&&&r/   test_invalid_iso_week_53'TestToDatetime.test_invalid_iso_week_53K  s,    " ]]:S11* 2111s	   <A	rr   rp   rz   c                   \         P                  ! 4       R8w  dY   \         P                  ! 4       R8w  d=   \        P                  ! \        VR7      ;_uu_ 4        \        W#VR7       RRR4       R# R# R#   + '       g   i     R# ; i)r  r_   r   N)r  UTF-8)r  r  )r  r  rb   rc   rd   r   )r*   r   r{  r|  rr   s   &&&&&r/   test_error_iso_week_year'TestToDatetime.test_error_iso_week_year_  sf    @ !338H8H8J O
 9
 z55Af= 65	9
3 655s   A55B	r   Nz
US/Centralc                `    \        R ^RVR7      pVP                  p\        V4      pWCJ g   Q hR# )
1965-04-032Wperiodsfreqr   N)r   _datar   )r*   r   dtir,   r-   s   &&   r/   test_to_datetime_dtarr%TestToDatetime.test_to_datetime_dtarr  s1     rDiiS!}}r2   r   c           	        \         P                  ! R 4      p\        R^RVR7      pV! V4      pVP                  \        P
                  ! VP                  RVR7      4      4      p\        WbR7      p\        WRR7      P                  \        P
                  ! TP                  RV'       g   TMRR7      4      4      pV'       g   V\        Jd   WvJ g   Q hV\        J d   \        P                  ! Wx4       R# \        P                  ! Wx4       R# )	pyarrowr  r  r  r   )unitr   r   r   N)rb   importorskipr   astyper   
ArrowDtype	timestampr   r   r(   rS   r)   )	r*   r   r   rB   par  	dti_arrowr-   r.   s	   &&&&     r/   test_to_datetime_arrow%TestToDatetime.test_to_datetime_arrow  s       +rDc"JJr}}R\\t\-KLM	Y0s,33MM",,DsR,NO
 f4 &&&f$""64!!&3r2   c                Z    \        \        R ^^4      4      pV\        R ^^4      8X  g   Q hR# )  Nr   r   r*   actuals   & r/   test_to_datetime_pydatetime*TestToDatetime.test_to_datetime_pydatetime  s,    XdAr23$2....r2   c                D    \        R 4      pV\        R^^4      8X  g   Q hR# )20080115r  Nr  r  s   & r/   test_to_datetime_YYYYMMDD(TestToDatetime.test_to_datetime_YYYYMMDD  s#    Z($2....r2   ztzset is not available on WASMr   c                   \         P                  ! R 4      ;_uu_ 4        \        R4      p\        R4      p\        R.4      ^ ,          p\	        VP
                  VP
                  ,
          4      R8  g   Q h\	        VP
                  VP
                  ,
          4      R8  g   Q hVP                  e   Q hVP                  e   Q h RRR4       R#   + '       g   i     R# ; i)
US/Easternnow    _BN)r(   set_timezoner   r   abs_valuer   )r*   r  pdnowpdnow2s   &   r/   test_to_datetime_now#TestToDatetime.test_to_datetime_now  s     __\**E"C&E %)!,F u||cjj01D888v}}szz12T999<<'''==((( +***s   B$CC	zPacific/AucklandzUS/Samoac                6   \         P                  ! V4      ;_uu_ 4        \        P                  ! R 4      P	                  R4      P	                  \        P
                  4      p\        R 4      p\        R .4      ^ ,          p\        R 4      p\        P                  ! 4       p\        VP                  4       P                  V,
          4      R8  g   Q h\        VP                  4       P                  V,
          4      R8  g   Q h\        VP                  VP                  ,
          4      R8  g   Q h\        VP                  VP                  ,
          4      R8  g   Q hVP                  e   Q hVP                  e   Q h RRR4       R#   + '       g   i     R# ; i)todaydatetime64[us]r  N)r(   r  r$   
datetime64r  int64r   r   r  r  	normalizer  r   )r*   r   nptodaypdtodaypdtoday2tstodaytstoday2s   &&     r/   test_to_datetime_today%TestToDatetime.test_to_datetime_today"  s,    __R  mmG,334DELLRXXVG!'*G"G9-a0H(G (H w((*11G;<tCCCx))+22W<=DDDw~~67$>>>w~~784???>>)))??***! !   s   EFF	rI   r  r  c                    \        V.4       R # r+  r   )r*   rI   s   &&r/   (test_to_datetime_today_now_unicode_bytes7TestToDatetime.test_to_datetime_today_now_unicode_bytes>  s    SEr2   z8ignore:Timestamp.utcnow is deprecated:DeprecationWarningzformat, expected_dszstring, attributec                    \        R V.VRR7      p\        V\        \        V4      ! 4       .RR7      pWe,
          P	                  4       P                  4       ^8  g   Q hR# )z2020-01-03 00:00:00ZTr   zdatetime64[s, UTC]r!   N)r   r   getattrr   maxtotal_seconds)r*   r=   expected_dsstring	attributer-   r.   s   &&&&&  r/    test_to_datetime_now_with_format/TestToDatetime.test_to_datetime_now_with_formatB  s]    * 4f=fRVW ')Y79:BV
 !&&(6681<<<r2   r   
2000-01-01
2000-01-02c                >    \        W!R 7      \        V4      8X  g   Q hR# r   NrH   )r*   r>   r   s   &&&r/   test_to_datetime_dt64s%TestToDatetime.test_to_datetime_dt64s]  s     2+y}<<<r2   arg, formatc                    \        V\        P                  ! R 4      .VR7      p\        RR .4      p\        P
                  ! W44       R# )rH  r   
2001-01-01Nr   r$   r  r   r(   r)   )r*   rI   r=   r-   r.   s   &&&  r/   test_to_datetime_dt64s_and_str-TestToDatetime.test_to_datetime_dt64s_and_strc  s;     c2==#>?O ,!=>
f/r2   z
1000-01-01z
5000-01-02c                    \        W#VR 7      p\        V\        4      '       g   Q hVP                  R8X  g   Q hVP                  V8X  g   Q h\        V4      pVP                  R8X  g   Q hVP                  V8X  g   Q hR# )rr   r>   r{  N)r   
isinstancer   r  asm8)r*   r>   r   rr   tss   &&&& r/   'test_to_datetime_dt64s_out_of_ns_bounds6TestToDatetime.test_to_datetime_dt64s_out_of_ns_boundsp  sl     %8"i((((ww#~~ww"}}r]ww#~~ww"}}r2   c                   \         P                  ! \         P                  ! \         P                  4      P                  R 4      pRp\
        P                  ! \        VR7      ;_uu_ 4        \        V4       RRR4       \
        P                  ! \        VR7      ;_uu_ 4        \        VRVR7       RRR4       \        VRVR7      \        J g   Q hR#   + '       g   i     Le; i  + '       g   i     L=; i)Dz7Out of bounds second timestamp: 25252734927768524-07-27r_   Nrp   r  rz   )r$   r  iinfor  r  rb   rc   r   r   r   r   )r*   r>   dt64r   s   &&  r/   $test_to_datetime_dt64d_out_of_bounds3TestToDatetime.test_to_datetime_dt64d_out_of_bounds  s    }}RXXbhh/33S9G]].c::dO ;]].c::WE: ; 4>#EEE ;:::s   *C"C&C#	&C6	r  r{  r  c                   \         P                  ! R V4      \         P                  ! RV4      .^,          p\        W1R7      p\        V Uu. uF  p\	        V4      P
                  NK  	  upRR7      p\        P                  ! WF4       . VO\         P                  ! R4      Np\        VRR7       \        VRVR	7      p\        \         P                  ! VRR7      4      p\        P                  ! WF4       R
# u upi )r  r  r   rs   r!   
9999-01-01rp   r2  rz   r  N)	r$   r  r   r   r   r  r(   r)   r%   )r*   r>   r  dtsr-   rV   r.   dts_with_oobs   &&&     r/   test_to_datetime_array_of_dt64s.TestToDatetime.test_to_datetime_array_of_dt64s  s    
 MM,-MM,-
  S. S!AS)A,"3"3S!AQ
f/ ;:bmmL9: 	L1\(%H ,g!FG
f/ "Bs   C6c                    \        R RR7      \        RRR7      .p\        W!R7      p\        RR.RR7      p\        P                  ! W44       R# )z2013-01-01 13:00:00-0800r   r   z2013-01-02 14:00:00-0800r   2013-01-01 13:00:002013-01-02 14:00:00Nr   r   r   r(   r)   )r*   r>   r,   r-   r.   s   &&   r/   test_to_datetime_tz"TestToDatetime.test_to_datetime_tz  sR     0\B0\B
 S. "$9:|
 	f/r2   c                :   \        R RR7      \        RRR7      .pRp\        P                  ! \        VR7      ;_uu_ 4        \	        W!R7       RRR4       \	        W!R	R
7      p\        RR.RR7      p\        P                  ! WE4       R#   + '       g   i     LD; i)r  r   r   r  r  zLTz-aware datetime.datetime cannot be converted to datetime64 unless utc=Truer_   r   Nrz   )r>   rr   z2013-01-01 13:00:00-08:00r   zdatetime64[us, US/Pacific]r!   )r   rb   rc   rd   r   r   r(   r)   )r*   r>   r,   r   r-   r.   s   &&    r/   test_to_datetime_tz_mixed(TestToDatetime.test_to_datetime_tz_mixed  s     +=+=

6 	 ]]:S11) 2 Sh? (%08T
 	f/ 21s   B

B	c                    R pRpV.^,          V.^,          ,           pRp\         P                  ! \        VR7      ;_uu_ 4        \        WAR7       RRR4       R#   + '       g   i     R# ; i)March 1, 2018 12:00:00+0400March 1, 2018 12:00:00+0500r   r_   r   Nr   )r*   r>   ts_string_1ts_string_2r,   r   s   &&    r/   *test_to_datetime_different_offsets_removed9TestToDatetime.test_to_datetime_different_offsets_removed  sS     43ma;-!"33F]]:S11) 2111s   AA,	c                l   \         P                  ! R 4      pVP                  R4      p\        P                  ! VP                  \        R^^^^ R7      4      VP                  \        R^^^^ R7      4      .\        R7      p\        VRVR7      p\        RR.R	R
R7      p\        P                  ! WV4       R
# )pytzr  r   )yearmonthdayhourminuter!   Tr   r>   2000-01-01 08:00:00+00:002000-06-01 07:00:00+00:00rL  Nr"   r  )rb   r  r   r$   r%   localizer   r&   r   r   r(   r)   )r*   r>   r  
us_easternr,   r-   r.   s   &&     r/   test_to_datetime_tz_pytz'TestToDatetime.test_to_datetime_tz_pytz  s    ""6*]]<0
hh##$aQQqI ##$aQQqI	 

 Sd%8 (*EF'

 	f/r2   z!init_constructor, end_constructorc                    R R.p\        RRR7      \        RRR7      .p\        V! V4      RRVR7      pV! V4      p\        P                  ! Wg4       R	# )
20100102 12131420100102 1213152010-01-02 12:13:14r   r   2010-01-02 12:13:15%Y%m%d %H%M%STr=   r   r>   N)r   r   r(   rA   )r*   r>   init_constructorend_constructorr   expected_datar-   r.   s   &&&&    r/   test_to_datetime_utc_true(TestToDatetime.test_to_datetime_utc_true  s^     "#45+6+6

 T"?E
 #=1
)r2   zscalar, expectedr  r  r  r  c                4    \        VR RVR7      pWC8X  g   Q hR# )r  Tr  Nr   )r*   r>   scalarr.   r-   s   &&&& r/    test_to_datetime_utc_true_scalar/TestToDatetime.test_to_datetime_utc_true_scalar  s      VOUS!!!r2   c                    R p\        \        V.4      RVR7      p\        \        VRR7      .4      p\        P                  ! W44       R# )g {ѴCTr  r   r   N)r   r   r   r(   rS   )r*   r>   r  r-   r.   s   &&   r/   2test_to_datetime_utc_true_with_series_single_valueATestToDatetime.test_to_datetime_utc_true_with_series_single_value	  s=    VRD\t5A9RE234
v0r2   c                    R pRp\        V.^,          4      p\        VRVR7      p\        \        VRR7      .^,          4      p\        P                  ! WV4       R# )z2013-01-01 00:00:00-01:002013-01-01 01:00:00Tr  r   r   Nr   r   r   r(   rS   )r*   r>   r  expected_tsr   r-   r.   s   &&     r/   4test_to_datetime_utc_true_with_series_tzaware_stringCTestToDatetime.test_to_datetime_utc_true_with_series_tzaware_string  sQ    (+rdQhTt599[U;<q@A
v0r2   zdate, dtypec                    \        \        R RR7      .RR7      p\        \        V.VR7      RVR7      p\        P                  ! WT4       R# )r  r   r   zM8[ns, UTC]r!   Tr  Nr   r   r   r(   rS   )r*   r>   r   r"   r.   r-   s   &&&&  r/   1test_to_datetime_utc_true_with_series_datetime_ns@TestToDatetime.test_to_datetime_utc_true_with_series_datetime_ns  sE     ,78
 VTF%8d%P
v0r2   c                   \         P                  ! R 4      pVP                  RRR7      pVP                  RRR7      p\        P                  ! \        R^^^^ VR7      \        R^^^^ VR7      .\        R7      p\        VRRVR7      p\        R	R
.RRR7      p\        P                  ! Wx4       \        R.VP                  RRR7      R7      P                  R4      p	\        V	4      '       d   Q h\        V	RVR7      p\        P                  ! Wy4       \        V	RRVR7      p\        R.RR7      p\        P                  ! Wx4       R# )zpsycopg2.tzN)r   r  r   r   r!   rz   T)rr   r   r>   r  r  rL  r  z2000-01-01 08:00:00r   rO  r  z2000-01-01 13:00:00ii)rb   r  FixedOffsetTimezoner$   r%   r   r&   r   r   r(   r)   r#  r   )
r*   requestr>   psycopg2_tztz1tz2r,   r-   r.   is
   &&&       r/   test_to_datetime_tz_psycopg2+TestToDatetime.test_to_datetime_tz_psycopg2&  sH   ))-8 --T-E--T-Ehhq!Q#6q!Q#6 
 St5I (*EF'

 	f/ "#..d.F
 '$- 	
 *!,,,, Qxu=
f(QxTG "7!8@UV
f/r2   c                    R p\         P                  ! \        VR7      ;_uu_ 4        \        V4       RRR4       \        VRVR7      \        J g   Q hR#   + '       g   i     L*; i)z2dtype bool cannot be converted to datetime64\[ns\]r_   Nrz   r  )rb   rc   	TypeErrorr   r   )r*   r>   rI   r   s   &&& r/   test_datetime_bool!TestToDatetime.test_datetime_boolL  sH     D]]9C00 13xu=DDD 10s   AA%	c                @   \        V4       R 2p\        P                  ! \        VR7      ;_uu_ 4        \	        R\
        P                  ! 4       .VR7       RRR4       \        P                  ! \        R\         R2R7      ;_uu_ 4        \	        RR.VR7       RRR4       \        P                  ! \	        ^ R\        R	.R
VR7      \        \	        ^ VR7      \        \        \	        ^ VR7      .4      4       R#   + '       g   i     L; i  + '       g   i     L{; i)z is not convertible to datetimer_   Fr   Nz2^time data "True" doesn\'t match format "%Y%m%d". r   20130101Tg        rz   r  )typerb   rc   r1  r   r   r  rd   r   r(   r)   r   r   r*   r>   r   s   && r/   test_datetime_bool_arrays_mixed.TestToDatetime.test_datetime_bool_arrays_mixedT  s    e<=]]9C00 01? 1]]E"#1&
 
 T*%8
 	E3,XUKQe,c3AU8ST	
 10
 
s   #C:
D:D
	D	c                    R p\         P                  ! \        VR7      ;_uu_ 4        \        V4       RRR4       R#   + '       g   i     R# ; i)zis not convertible to datetimer_   N)rb   rc   r1  r   )r*   rI   r   s   && r/   test_datetime_invalid_datatype-TestToDatetime.test_datetime_invalid_datatypeg  s1     /]]9C00 1000s	   =A	c                    \         P                  ! \        R R7      ;_uu_ 4        \        R.RVR7       RRR4       R#   + '       g   i     R# ; i)z*':' is a bad directive in format 'H%:M%:S%r_   z00:00:00zH%:M%:S%r   Nr   )r*   rr   s   &&r/   test_invalid_format_raises)TestToDatetime.test_invalid_format_raisesn  s@     ]]J
 
 ZG
 
 
 
	   ?A	r   az00:01:99z%H:%M:%Sc                2   \        VR VR7      pV\        J g   Q hRP                  R\         R2RR\         R2R\         R2.4      p\
        P                  ! \        VR	7      ;_uu_ 4        \        VR
VR7       RRR4       R#   + '       g   i     R# ; i)rz   rr   r=   r   1^time data "a" doesn\'t match format "%H:%M:%S". r   -^Given date string "a" not likely a datetime$D^unconverted data remains when parsing with format "%H:%M:%S": "9". ^second must be in 0..59: 00:01:99$r_   rp   N)r   r   r   r   NOT_99rb   rc   rd   r*   r   r=   r3  r   s   &&&  r/   test_datetime_invalid_scalar+TestToDatetime.test_datetime_invalid_scalarv  s     %@czzhhD"#1&@W"#1&+F8;?	
 ]]:S11gf= 2111s   ,BB	z3000/12/11 00:00:00c                   \        VR VR7      pVf,   \        V\        4      '       g   Q hV\        V4      8X  g   Q hMV\        J g   Q hVe@   Rp\        P
                  ! \        VR7      ;_uu_ 4        \        VRVR7       RRR4       R# \        VRVR7      p\        V\        4      '       g   Q hV\        V4      8X  g   Q hR#   + '       g   i     R# ; i)rz   rC  Nz*^time data ".*" doesn\'t match format ".*"r_   rp   )r   r  r   r   rb   rc   rd   rJ  s   &&&  r/    test_datetime_outofbounds_scalar/TestToDatetime.test_datetime_outofbounds_scalar  s     %@>c9----)E****#::?Cz55E'&A 65 eGFCCc9----)E**** 655s   4CC	rC   c           
        Vf   \        V4      ^8  d   \        pMR p\        P                  ! VRRR7      ;_uu_ 4        \	        VRVR7      pR R R 4       \        P
                  ! X\        \        .\        V4      ,          4      4       RP                  RR\         R	2R
\         R	2R\         R2.4      p\        P                  ! \        VR7      ;_uu_ 4        \        P                  ! VRRR7      ;_uu_ 4        \	        VRVR7       R R R 4       R R R 4       R #   + '       g   i     L; i  + '       g   i     L-; i  + '       g   i     R # ; i)NCould not infer formatFr`   raise_on_extra_warningsrz   rC  r   rE  rD  r   rF  rG  rH  r_   rp   )lenUserWarningr(   assert_produces_warningr   r)   r   r   r   r   rI  rb   rc   rd   )r*   rC   r=   warnr3  r   s   &&&   r/   test_datetime_invalid_index*TestToDatetime.test_datetime_invalid_index  s    >c&kAoDD''0%
 
 fXfEC
 	c=#V1D#EFhh@D"#1&W"#1&+F8;?	
 ]]:S11++4e  F76B 21!
 
"  211s/   D"E>D2	ED/	2E=EE	z%Y%m%d %H:%M:%Sc                    R pV.R,          pV! V4      p\        WaVRR7      p\        WaVRR7      p\        P                  ! Wx4       R# 20130101 00:00:00T)r   r=   r>   FN順 rl  )	r*   r   r=   rQ  r   
test_datesr   r-   r.   s	   &&&&     r/   test_to_datetime_cache%TestToDatetime.test_to_datetime_cache  sH     #Ve^
:&T6FtV5I
f/r2   c                    \        \        \        R 4      .^3,          4      4      p\        \        R 4      .^3,          4      p\        P                  ! W4       R# )2010-06-02 09:30:00N)r   r   r   r(   r)   r   s   &  r/   test_to_datetime_from_deque*TestToDatetime.test_to_datetime_from_deque  sE    UI.C$D#E#JKL	*? @ABFG
f/r2   c                    R pV.R,          p\        V4      p\        WQVRR7      p\        WQVRR7      p\        P                  ! Wg4       R# r[  r}   )r*   r   r=   r   r^  r   r-   r.   s   &&&     r/   test_to_datetime_cache_series,TestToDatetime.test_to_datetime_cache_series  sH     #Ve^
j!T6FtV5I
v0r2   c                J    R p\        VRR7      p\        R 4      pW#8X  g   Q hR# )r\  Tr   NrH   )r*   r   r-   r.   s   &   r/   test_to_datetime_cache_scalar,TestToDatetime.test_to_datetime_cache_scalar  s*    "T.01!!!r2   z&datetimelikes,expected_values,exp_unitz
2012-07-26z2012 July 26c                    \        VR R7      p\        VRR7      p\        VRV R2R7      p\        P                  ! WV4       R# )r&   r!   rz   r2  zdatetime64[]Nr}   )r*   datetimelikesexpected_valuesexp_unitrU   result_seriesexpected_seriess   &&&&   r/   *test_convert_object_to_datetime_with_cache9TestToDatetime.test_convert_object_to_datetime_with_cache  sK    8 
 $C9 z+
 	}>r2   inputr&   r   c                    \        \        .\        V4      ,          R R7      p\        W!R7      p\        P
                  ! WC4       R# )rs   r!   r   N)r   r   rT  r   r(   rS   )r*   r>   rt  r.   r-   s   &&&  r/   *test_to_datetime_converts_null_like_to_nat9TestToDatetime.test_to_datetime_converts_null_like_to_nat  s3    " 3%#e*,G<U0
v0r2   zdate, formatc                    R p\         P                  ! \        VR7      ;_uu_ 4        \        WR7       RRR4       R#   + '       g   i     R# ; i)z,Cannot use '%W' or '%U' without day and yearr_   r   Nr   )r*   r   r=   r   s   &&& r/   'test_week_without_day_and_calendar_year6TestToDatetime.test_week_without_day_and_calendar_year   s1     =]]:S11, 2111r   c                    . ROpRp\         P                  ! \        VR7      ;_uu_ 4        \        VRR7       RRR4       R#   + '       g   i     R# ; i)r  r   r_   rz   r2  N)r  r  20100240r   r*   
ts_stringsr   s   &  r/   test_to_datetime_coerce&TestToDatetime.test_to_datetime_coerce2  s;    


 G]]:S11
84 2111s   AA	zstring_arg, formatoutofboundsi'  r  zJanuary 1, 9999c                   W.p\        VR VR7      p\        V\        4      '       dM   VP                  R4      VP                  R4      ,          '       d    \	        \        R^^4      \        .RR7      pMK\        V\
        4      '       d   \	        \        R^^4      V.RR7      pM\	        \        R^^4      V.RR7      p\        P                  ! WV4       R# )rz   rC  z%BJ  r]   r!   N)	r   r  rR   
startswithr   r   r   r(   r)   )r*   
string_argr=   r  r~  r-   r.   s   &&&&   r/   test_to_datetime_coerce_oob*TestToDatetime.test_to_datetime_coerce_oob=  s      !.
ZHk3''d#k&<&<S&AAA %htQ&:C%@QHX..$$1%{38H %$1%{38H 	f/r2   c                   R R.p\         P                  ! \        RRR7      ;_uu_ 4        \        VRR7      pRRR4       \	        \
        \
        .RR	7      p\         P                  ! XV4       R#   + '       g   i     L@; i)
200622-12-31111111-24-11rQ  FrR  rz   r2  Nrs   r!   )r(   rV  rU  r   r   r   r)   )r*   r~  r-   r   s   &   r/   #test_to_datetime_malformed_no_raise2TestToDatetime.test_to_datetime_malformed_no_raise^  sj     %n5
''7QV
 
 !H=F

 S#Jg.
fc*
 
s   A00B 	c           	     .   R R.pRp\         P                  ! \        VR7      ;_uu_ 4        \        P                  ! \
        RR7      ;_uu_ 4        \        VRR7       RRR4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)r  r  z~Parsed string "200622-12-31" gives an invalid tzoffset, which must be between -timedelta\(hours=24\) and timedelta\(hours=24\)r_   rQ  rp   r2  Nrb   rc   rd   r(   rV  rU  r   r}  s   &  r/    test_to_datetime_malformed_raise/TestToDatetime.test_to_datetime_malformed_raisej  s    $n5
K 	 ]]
 
 ++#;  "	
 
 	
 
 
s#   %BA0	B0B ;BB	c                "   R p\        V4      p\        V4      pW#8X  g   Q h\        \        V4      .^,          4      p\        V.^,          4      p\        P                  ! W#4       \        V.^,          4      p\        P                  ! W#4       R# )2015-11-18 15:30:00+05:30N)r   r   r   r(   r)   )r*   ts_strr-   r.   s   &   r/   &test_iso_8601_strings_with_same_offset5TestToDatetime.test_iso_8601_strings_with_same_offset}  sz    ,V$V$!!! )F"3!4q!89fX\*
f/x!|,
f/r2   c                    R R\         .pRp\        P                  ! \        VR7      ;_uu_ 4        \	        V4       RRR4       R#   + '       g   i     R# ; i)r  2015-11-18 16:30:00+06:30r   r_   N)r   rb   rc   rd   r   r}  s   &  r/   4test_iso_8601_strings_with_different_offsets_removedCTestToDatetime.test_iso_8601_strings_with_different_offsets_removed  s=    13NPST
F]]:S11
# 2111s   AA	c           	         R R\         .p\        VRR7      p\        \        R^^^
4      \        R^^^
4      \         .RR7      p\        P
                  ! W#4       R# )r  r  Tr  ry  r   r   N)r   r   r   r   r(   r)   )r*   r~  r-   r.   s   &   r/   0test_iso_8601_strings_with_different_offsets_utc?TestToDatetime.test_iso_8601_strings_with_different_offsets_utc  sY    13NPST
ZT2 tRR()D"b"*EsKPU
 	f/r2   c                  aa R \        R4      RRRRR.o\        S4      o\        ;QJ d2    VV3R l\        \	        S4      4       4       F  '       d   K   RM'	  R	M#! VV3R l\        \	        S4      4       4       4      '       g   Q hR
p\
        P                  ! \        VR7      ;_uu_ 4        \        S4       RRR4       R#   + '       g   i     R# ; i)ra   z
1990-01-01z2015-03-14T16:15:14.123-08:00z2019-03-04T21:56:32.620-07:00Nr  r  c              3   H   <"   T F  pSV,          SV,          J x  K  	  R # 5ir+  r  ).0r-  rU   r$  s   & r/   	<genexpr>ZTestToDatetime.test_mixed_offsets_with_native_datetime_utc_false_raises.<locals>.<genexpr>  s      ?.>3q6T!W$.>s   "FTr   r_   )	r   r   allrangerT  rb   rc   rd   r   )r*   r   rU   r$  s   & @@r/   8test_mixed_offsets_with_native_datetime_utc_false_raisesGTestToDatetime.test_mixed_offsets_with_native_datetime_utc_false_raises  s     l#++
 Tls?eCI.>?sss?eCI.>?????F]]:S11 2111s   .CC	c                    \        R .^,          4      p\        \        R^^^\        \	        ^R7      4      R7      .^,          4      p\
        P                  ! W4       R# )r  r  r   r   N)r   r   r   r   r   r(   r)   r   s   &  r/   #test_non_iso_strings_with_tz_offset2TestToDatetime.test_non_iso_strings_with_tz_offset  sR    ;<q@A dAq"Xi6L-MNORSS
 	f/r2   zts, expectedz
2018-01-01r   r   z2018-01-01 08:00c                0    \        VR R7      pW28X  g   Q hR# )Tr  Nr   )r*   r  r.   r-   s   &&& r/   test_timestamp_utc_true&TestToDatetime.test_timestamp_utc_true  s     RT*!!!r2   dt_strc                    \        VR R7      p\        P                  ! VR 4      p\        V4      pW$8X  g   Q hVP                  VP                  8X  g   Q hR# )rO   r   N)r   r   r   r   r  )r*   r  r3  dtobjr.   s   &&   r/   *test_to_datetime_with_format_out_of_bounds9TestToDatetime.test_to_datetime_with_format_out_of_bounds  sL     &2!!&(3U#xx8==(((r2   c                    \         P                  ! \        R 4      .\        R7      p\	        VRR7      pVP
                  \        P                  J g   Q hR# )z2012-06-13T01:39:00Zr!   Tr  N)r$   r%   r   r&   r   r   r   r   )r*   r,   r-   s   &  r/   test_to_datetime_utc#TestToDatetime.test_to_datetime_utc  s=    hh456fESd+yyHLL(((r2   c           	         ^ RI Hp V! RR4      p\        R^^VR7      \        R^^VR7      \        R^^VR7      .p\        V4      pVP                  V8X  g   Q hR# )rZ  )FixedOffsetz-07:00r   r   Ni\)-pandas.tests.indexes.datetimes.test_timezonesr  r   r   r   )r*   r  	fixed_offr   r-   s   &    r/   test_to_datetime_fixed_offset,TestToDatetime.test_to_datetime_fixed_offset  sb    Mh/	 T1a	2T1a	2T1a	2

 U#yyI%%%r2   r   z2020-10-26 00:00:00+06:00z2020-10-26 00:00:00+01:00zAustralia/Melbournec                    R p\         P                  ! \        VR7      ;_uu_ 4        \        VRR7       RRR4       R#   + '       g   i     R# ; i)r   r_   Fr  Nr   )r*   r   r   s   && r/   5test_to_datetime_mixed_offsets_with_utc_false_removedDTestToDatetime.test_to_datetime_mixed_offsets_with_utc_false_removed  s4     G]]:S11%( 2111	   ?A	r  )r  z2000-01-02 00:00:00+00:00r   )r  z2000-02-01 00:00:00+00:00r   )z'Week 53 does not exist in ISO year 2024z	2024 53 1%G %V %u)z'Week 53 does not exist in ISO year 2023z	2023 53 1r  )dISO week directive '%V' is incompatible with the year directive '%Y'. Use the ISO year '%G' instead.1999 50z%Y %V)xISO year directive '%G' must be used with the ISO week directive '%V' and a weekday directive '%A', '%a', '%w', or '%u'.z1999 51z%G %V)r  z1999 Mondayz%G %A)r  z1999 Monz%G %a)r  1999 6z%G %w)r  r  z%G %u)r  2051z%G)`Day of the year directive '%j' is not compatible with ISO year directive '%G'. Use '%Y' instead.z1999 51 6 256z%G %V %u %j)r  1999 51 Sundayz%Y %V %A)r  1999 51 Sunz%Y %V %a)r  	1999 51 1z%Y %V %w)r  r  z%Y %V %u)xISO week directive '%V' must be used with the ISO year directive '%G' and a weekday directive '%A', '%a', '%w', or '%u'.20z%V)r  r  %V %A)r  r  z%V %a)r  r  z%V %w)r  r  z%V %u)r  r  z%G %j)r  z	20 Mondayr  ))r   
2020-01-03)rK  z
2020-03-01)Nr  )r  utcnow)r  r  )r  r   )z
01-01-2001z%d-%m-%Y)r  datetime64[ns])r  zdatetime64[ns, UTC])rA  bz99:00:00r+  ))z2017-20z%Y-%W)	20 Sundayz%W %A)20 Sunz%W %a)z2017-21z%Y-%U)r  z%U %A)r  z%U %a)zMarch 1, 2018z	%B %d, %Y)z
2018-03-01r   )00010101130001013000010199990101)hr  r  r  r  r(  r.  rb   r  filterwarningsr4  r<  rB  r  rI  r  r   r#  r   r^  rb  r   rh  rm  rq  rv  r   r}  r  r  r  r  skip_if_windowsr  r  r  skipifr   r  r  r  r  r$   r  r  r  r  r  r  r  r  r  r  r   listr%   r   r  r  r  r!  r%  r.  r2  r8  boolr   r;  r>  rK  rN  rX  tupler   r_  rc  rf  ri  ra   r   rr  r   r   rv  ry  r  r   r  r  r  r  r  r  r  r  r  r  r  r  
astimezonezoneinfoZoneInfor  r  r  r  s   @r/   r  r  "  s&    1&( [[ ?@( A($-1 [[:z*M0J  -- [[	 56!#34  
 [[LL,.IJ02MN/ , LL,.IJ02MN'$-. LL,.IJ02MN/ ; LL&(CD02MN/ A7$	
'P [[	:;0	Q'b0 [[	 56!#34  
 [[	:;;	;  [[LL%8[I8[I
 & LL%8[I8[I
 *	
./. [[LL%U/ " LL%U/ &	
*0+*0 [[	 56!#34  
 [[LL,.IJ?	
 [[	:;;	$;.( [[XdBAq%ABXdAq!Q%?@XdAq!Q%?@*htRQ&BC*htRQ&BCXdBAq%AB*htRQ&BC	
44 [[
	
++
 [[[s	
vn [[X':;> <ovp> [[TD,#78 9 [[UT5M2[[TD,#784 9 3 4*// [[%EF) G )  [[%EF[[T$6
#CD+ E G +2 [[UUG$45 6 [[B [[%EF[[	
 [[	
= G&= [[r}}\*BMM,,GH== [[&&	
00 [[r}}\*BMM,,GH [[X':;	 <		F [[Vc3Z00 10000(	*0. [[+M"=!XX}%V		
** [[	*?E JK	*?E JK	
""
11 [[5:	
11$0L [[UT5M2E 3E
& [[UT;$78 9 [[X'':;H <H [[WsJ&78[[Xj'9:> ; 9>$ [[W'<&=>[[Xj'9:+ ; ?+$ [[	se
|/EG [[X'=>C ?C> [[UT4L1[[X(94'@A[[]T5"((E5,QR0 S B 200 [[UT4L1[[X(94'@A1 B 21" [[0 rvv#*:!::*Q./ y.66s;<&++,i-55c:;sfGW>WW	 &++,!9\#:;< *Q./\*Il,CDE	
0?10? [[C52:+8<C52:+8<D6B;D6B;B4"9B4"9BEE7R< BEE7R< BFF8b=!BFF8b=!	
11 [[	

-
-	5 [[	')CD [[T1a q!MM,'	
	0		0&
+&0$0&0 [[|$i&GH,<8,7	
	"	"
 [[X'WX) Y))& [[(*EF()L\*RS+q!R(33%%&;<		
))r2   r  c            	         a  ] tR tRt o ]P
                  P                  RRR.4      ]P
                  P                  R^]! ^4      .4      R 4       4       t]P
                  P                  RRR.4      R 4       t	R t
R	 tR
 tR t]P
                  P                  RRR.4      R 4       t]P
                  P                  RRR.4      ]P
                  P                  RRR.4      R 4       4       t]P
                  P                  R. R*O. R+O].. R,O. R-OR..4      R 4       t]P
                  P                  R]! R4      RR.RR]! R4      ..4      R 4       tR t]P
                  P                  R]].4      R 4       t]P
                  P                  R ]]P2                  .4      R! 4       tR" tR# t]P
                  P                  R$RR%.4      R& 4       t]P
                  P                  R$RR%.4      R' 4       tR( tR)t V t!R# ).TestToDatetimeUniti  r  YMitemc                l   \        W2R 7      pRp\        V.VR7      p\        V.W!R7      p\        P                  ! W4       \        \
        P                  ! V.\        R7      W!R7      p\        P                  ! W4       \        \
        P                  ! V.4      W!R7      p\        P                  ! W4       \        \
        P                  ! V\
        P                  .4      W!R7      pVP                  4       ^,          '       g   Q h\        P                  ! VR,          VP                  R4      4       R# )r  rs   r!   r  r>   :N   NN)r   r   r   r(   r)   r$   r%   r&   ra   r   r  )	r*   r>   r  r  r)  r  r"   r.   r-   s	   &&&&&    r/   'test_to_datetime_month_or_year_unit_int:TestToDatetimeUnit.test_to_datetime_month_or_year_unit_int  s     t' "U3dV$<
f/RXXtfF;$T
f/RXXtf-DF
f/ RXXtRVVn5DN{{}Q
fRj(//'*BCr2   c                v   R V R2p\         P                  ! \        VR7      ;_uu_ 4        \        R.VRR7       RRR4       \         P                  ! \        VR7      ;_uu_ 4        \        \        P
                  ! R.4      VRR7       RRR4       Rp\         P                  ! \        VR7      ;_uu_ 4        \        R.VRR7       RRR4       \        R.VR	R7      p\        \        .R
R7      p\        P                  ! WE4       \        R.VR	R7      p\        \        .4      p\        P                  ! WE4       \        R.VR7      p\        ^.VR7      P                  R4      p\        P                  ! WE4       R#   + '       g   i     ELN; i  + '       g   i     EL; i  + '       g   i     L; i)z(Conversion of non-round float with unit=z is ambiguousr_         ?rp   r  rr   Nz/Given date string \"1.5\" not likely a datetimez1.5rz   M8[ns]r!         ?r  r{  )rb   rc   rd   r   r$   r%   r   r   r(   r)   r#  )r*   r>   r  r   r3  r.   s   &&&   r/   3test_to_datetime_month_or_year_unit_non_round_floatFTestToDatetimeUnit.test_to_datetime_month_or_year_unit_non_round_float
  s>   
 9mL]]:S11D9 2]]:S11#d7C 2 A]]:S11d7; 2 3%d8<#h/
c, 5'X>u%
c, 3%d+s.66s;
c,/ 211111 21s#   F '$F9F( F	F%	(F8	c           	         R p\         P                  ! \        VR7      ;_uu_ 4        \        ^.RRVR7       RRR4       R#   + '       g   i     R# ; i)z#cannot specify both format and unitr_   r  rO   )r  r=   r>   Nr   r7  s   && r/   	test_unitTestToDatetimeUnit.test_unit)  s9     4]]:S11#heD 2111rj  c           	     R   R ^R\         \        \        P                  RR.p\	        VRRVR7      p\        . RORR7      p\        P                  ! W44       R	p\        P                  ! \        VR
7      ;_uu_ 4        \	        VRRVR7       RRR4       R#   + '       g   i     R# ; i)l   qMe;r  r   r   r  rz   r  rr   r>   rs   r!   z8cannot convert input 11111111111111111 with the unit 'D'r_   rp   N)r   
1970-01-02r  r   r   r   r   r   r
   r   r$   ra   r   r   r(   r)   rb   rc   r   r*   r>   rC   r-   r.   r   s   &&    r/   test_unit_array_mixed_nans-TestToDatetimeUnit.test_unit_array_mixed_nans0  s    #QT3rJV#heL R
 	f/H]].c::SF ;:::s   ;BB&	c           	     L   R \         \        \        P                  R.p\	        VRRVR7      p\        . RORR7      p\        P                  ! W44       Rp\        P                  ! \        VR7      ;_uu_ 4        \	        VR	RVR7       R
R
R
4       R
#   + '       g   i     R
# ; i)l     #0U.KK% r   rz   r{  rr   r  r>   rs   r!   z@cannot convert input 1420043460000000000000000 with the unit 's'r_   rp   N)r   r   r   r   r   r  r  s   &&    r/   $test_unit_array_mixed_nans_large_int7TestToDatetimeUnit.test_unit_array_mixed_nans_large_int>  su    +T3FVH3eL !DGT
f/P]].c::wSF ;:::s   8BB#	c           	         R p\         P                  ! \        VR7      ;_uu_ 4        \        RRRVR7       RRR4       R#   + '       g   i     R# ; i)z4Unknown datetime string format, unable to parse: foor_   r  rp   r{  r  Nr   r7  s   && r/   8test_to_datetime_invalid_str_not_out_of_bounds_valuerrorKTestToDatetimeUnit.test_to_datetime_invalid_str_not_out_of_bounds_valuerrorI  s8     E]]:S11gCuE 2111   AA	errorrp   rz   c                x    \        R 4      p\        RRW!R7      pWC8X  g   Q h\        V\         4      '       g   Q hR# )z1970-05-09 14:25:11iǊ r{  r  N)r   r   r  )r*   r>   r  r.   r-   s   &&&  r/   test_unit_consistency(TestToDatetimeUnit.test_unit_consistencyP  s<     23XCK!!!&),,,,r2   rr   r"   float64r  c                    \        R R.RR7      p\        P                  ! RR.4      P                  V4      p\	        WRVR7      p\
        P                  ! Wd4       R# )2015-06-19 05:33:202015-05-27 22:33:20r  r!   @CA5Cr  N)r   r$   r%   r  r   r(   r)   )r*   r>   rr   r"   r.   r,   r-   s   &&&&   r/   test_unit_with_numeric)TestToDatetimeUnit.test_unit_with_numericX  sS    
 !"$9:(
 hh[1299%@Su=
f/r2   zexp, arr, warningr  r  r  Nc                    \        VR R7      p\        P                  ! VRR7      ;_uu_ 4        \        VRVR7      pRRR4       \        P                  ! XV4       R#   + '       g   i     L); i)r  r!   rQ  r_   rz   r  N)r   r(   rV  r   r)   )r*   r>   r   r,   warningr.   r-   s   &&&&&  r/   test_unit_with_numeric_coerce0TestToDatetimeUnit.test_unit_with_numeric_coerced  sR    $ !H5''7OPP XUCF Q
fh/ QPs   AA.	r,   r5  c                .   \        V Uu. uF  p\        V4      NK  	  upR R7      p\        VRVR7      p\        P                  ! WT4       \        VRVR7      p\        P                  ! WT4       \        V4      p\        P                  ! WT4       R# u upi )r  r!   rz   r  rp   N)r   r   r   r(   r)   r   )r*   r>   r,   rV   r.   r-   s   &&&   r/   test_unit_mixed"TestToDatetimeUnit.test_unit_mixed{  sz     41)A,4HES?
f/ S>
f/s#
f/ 5s   Bc                v    R p\        VRVR7      p\        R4      pW48X  g   Q h\        VRR7      pWS8X  g   Q hR# )g aAr{  r  z2015-06-19 19:55:31.877000093r  NrH   )r*   r>   r   r-   r.   alts   &&    r/   test_unit_rounding%TestToDatetimeUnit.test_unit_rounding  sD     #UE:<=!!!C(}}r2   c           
     b   R p\        \        ^4       Uu. uF  q2V,           NK  	  up4      P                  V4      p\        VRR7      pRp\        \        ^4       Uu. uF  p\	        R4      \        VR7      ,           NK!  	  upRV R2R7      p\        P                  ! WW4       R# u upi u upi 	Qr{  r  2013-06-09 02:42:28secondsM8[rl  r!   N)r   r  r  r   r   r   r(   rS   )r*   r"   epochtrU   r-   r  r.   s   &&      r/   test_to_datetime_unit(TestToDatetimeUnit.test_to_datetime_unit  s    r3Aaii34;;EBSs+ r"A /09Q3GGG" vQ-
 	v0 4s   B'%B,nullc           
     l   R p\        \        ^4       Uu. uF  q2V,           NK  	  upV.,           4      p\        VRR7      pRp\        \        ^4       Uu. uF  p\        R4      \	        VR7      ,           NK!  	  up\
        .,           RV R2R7      p\        P                  ! WW4       R# u upi u upi r  )r   r  r   r   r   r   r(   rS   )r*   r%  r!  r"  rU   r-   r  r.   s   &&      r/    test_to_datetime_unit_with_nulls3TestToDatetimeUnit.test_to_datetime_unit_with_nulls  s    r3Aaii3tf<=Ss+ NSTViXiY,-	!0DDDiXevQ-

 	v0 4 Ys   B,%B1c           
        R p\        \        P                  ! ^ ^R4       Uu. uF  q!V,           NK  	  up\        .,           4      P	                  \
        4      p\        VRR7      p\        \        P                  ! ^ ^R4       Uu. uF  p\        R4      \        VR7      ,           NK!  	  up\        .,           RR7      pVP                  P                  R4      p\        P                  ! WE4       R	# u upi u upi )
r  g      ?r{  r  r  r  r  r!   msN)r   r$   aranger
   r  rZ   r   r   r   r   r   roundr(   rS   )r*   r!  r"  rU   r-   r.   s   &     r/   (test_to_datetime_unit_fractional_seconds;TestToDatetimeUnit.test_to_datetime_unit_fractional_seconds  s    1a)>?)>Aaii)>?4&HIPPQVWSs+ 1a..A /09Q3GGG. e	
 
 &
v0 @s   C2%C7c                    \        ^^R\        \        P                  .RR7      p\	        \        R4      \        R4      .R.^,          ,           RR7      p\        P                  ! W4       R# )	r  r   r  r  r  
1970-01-03rs   r!   N)r   r   r$   ra   r   r   r(   r)   r   s   &  r/   test_to_datetime_unit_na_values2TestToDatetimeUnit.test_to_datetime_unit_na_values  sW    aE37cB |$i&=>%1L
 	f/r2   bad_vall   q$8 c                    VR 8X  d   RV 2pMRp\         P                  ! \        VR7      ;_uu_ 4        \        ^^V.RR7       RRR4       R#   + '       g   i     R# ; i)r  z1Unknown datetime string format, unable to parse: z6cannot convert input 111111111111111 with the unit 'D'r_   r  r  Nr   )r*   r3  r   s   && r/   test_to_datetime_unit_invalid0TestToDatetimeUnit.test_to_datetime_unit_invalid  sK    eEgYOCJC]]:S11Awc2 2111s   AA 	c                    \        \        R 4      \        R4      .R.^,          ,           RR7      p\        ^^V.RRR7      p\        P                  ! W24       R# )	r  r0  r   rs   r!   r  rz   r  Nr@  )r*   r3  r.   r-   s   &&  r/   test_to_timestamp_unit_coerce0TestToDatetimeUnit.test_to_timestamp_unit_coerce  sR     !|$i&=>%1L
 aG_3xH
f/r2   c                b   R pR
pRV,          p\        ^ VR,
          V) R,           .\        R7      pWB,          P                  \        P                  4      pR F  p\        VRVR7      p\        P                  ! VP                  \        P                  4      P                  \        P                  4      VP                  \        P                  4      RR7       K  	  \        ^ VR,           .\        R7      p\        ^ V) R,
          .\        R7      p	\        P                  ! \        VR7      ;_uu_ 4        \        VRRR7       R	R	R	4       \        P                  ! \        VR7      ;_uu_ 4        \        V	RRR7       R	R	R	4       R	#   + '       g   i     LM; i  + '       g   i     R	# ; i)z"cannot convert input with unit 'D'g{Gzt?r!   rp   r  r  g|=)rtolr_   Ng  S$Bl            )rp   rz   )r   rZ   r  r$   r  r   r(   assert_almost_equalr  rb   rc   r   )
r*   r   oneday_in_nstsmax_in_daysshould_succeedr.   
error_moder%  should_fail1should_fail2s
   &         r/   (test_float_to_datetime_raise_near_bounds;TestToDatetimeUnit.test_float_to_datetime_raise_near_bounds  s7   2),%~'=>e
 #199"((C-J!.s:NG ""rxx(//

;

+	 . q-%"78Fq=.5"89G]].c::3w? ;]].c::3w? ;: ;::::s   6F
1F
F	F.	r  )r   r	  r
  )r  r  r  )r	  r
  r   r   )r  r  r  r   )"r  r  r  r  rb   r  r  rZ   r  r  r  r  r  r   r  r  rU  r  r   r  r  intr#  r
   r$   ra   r'  r-  r1  r5  r8  rC  r  r  r  s   @r/   r  r    s`    [[Vc3Z0[[Vc5:%67D 8 1D( [[Vc3Z0- 1-<EG	GF [[Ww&9:- ;- [[X':;[[Wy'&:;0 < <0 [[ F1 M8	
00 [[z"K=+y'<=	
00"	 [[WsEl31 41 [[VdBFF^41 511"0 [[Y(@A3 B3 [[Y(@A0 B0@ @r2   r  c                   d  a  ] tR tRt o ]P
                  R 4       tR tR t]P                  P                  RRRRR	R
RRRRRRR/RRRRR
R
RRRRRR/.4      R 4       tR tR tR tR tR t]P                  P                  RR.RR.. R!ORR
.. R"O.4      R 4       tR tR tR tR tR tRtV tR # )#TestToDatetimeDataFramei  c                `    \        R RR.R^^.R^^.R^^.R^:^;.R^
^.R^^.R	^^.R
^^./	4      # )r  ry    r  r  r   r  secondr*  rO  r   )r   r-  s   &r/   dfTestToDatetimeDataFrame.df  se    t!Q1vA2r(2r(q!fq!fq!f

 	
r2   c           	     X   \        R VR ,          RVR,          RVR,          /VR7      p\        \        R4      \        R4      .4      p\        P                  ! W44       \        V. RO,          P                  4       VR7      p\        ^ ^.4      Vn        \        P                  ! W44       R# )r  r  r  r   20150204 00:00:00z20160305 00:0:00Nr  r  r  )r   r   r   r(   rS   to_dictr   indexr*   rK  r>   r-   r.   s   &&&  r/   test_dataframe&TestToDatetimeDataFrame.test_dataframe  s    RZ"W+ubiHPU
 *+Y7I-JK
 	v0 R 89AAC5Q1v
v0r2   c                    V. RO,          P                  4       p^VR&   \        W2R7      p\        \        R4      \        R4      .\	        ^ ^.4      R7      p\
        P                  ! WE4       R# )r  r  r   rN  z20160205 00:0:00rQ  NrO  )rP  r   r   r   r   r(   rS   )r*   rK  r>   df2r-   	expected2s   &&&   r/   &test_dataframe_dict_with_constructable>TestToDatetimeDataFrame.test_dataframe_dict_with_constructable#  sb    )*224GS.*+Y7I-JKA-
	 	v1r2   r  r  yearsr  monthsr  daysr   r8  r  r   rJ  r  c                    \        V\        VP                  4       4      ,          P                  VR 7      VR7      p\	        \        R4      \        R4      .RR7      p\        P                  ! WE4       R# )columnsr   z20150204 06:58:10z20160305 07:59:11r]   r!   N)r   r  keysrenamer   r   r(   rS   )r*   rK  r>   r  r-   r.   s   &&&&  r/   *test_dataframe_field_aliases_column_subsetBTestToDatetimeDataFrame.test_dataframe_field_aliases_column_subset.  s_    . RTYY[ 1299$9GuU*+Y7J-KL
 	v0r2   c                    R R RRRRRRRRRRRRRRRR/	p\        VP                  VR	7      VR
7      p\        \        R4      \        R4      .4      p\        P
                  ! WE4       R# )r  r  r  r   r  rJ  r*  rO  r   r_  r   20150204 06:58:10.00100200320160305 07:59:11.001002003N)r   rb  r   r   r(   rS   )r*   rK  r>   dr-   r.   s   &&&   r/   test_dataframe_field_aliases4TestToDatetimeDataFrame.test_dataframe_field_aliasesL  s    FW5Fhh$$$

 RYYqY1?7878
 	v0r2   c                    \        VP                  \        4      VR 7      p\        \	        R4      \	        R4      .4      p\
        P                  ! W44       R# r   rf  rg  N)r   r  rR   r   r   r(   rS   rR  s   &&&  r/   test_dataframe_str_dtype0TestToDatetimeDataFrame.test_dataframe_str_dtypeb  sG    RYYs^597878
 	v0r2   c                    \        VP                  \        P                  4      VR 7      p\	        \        R4      \        R4      .4      p\        P                  ! W44       R# rl  )r   r  r$   float32r   r   r(   rS   rR  s   &&&  r/   test_dataframe_float32_dtype4TestToDatetimeDataFrame.test_dataframe_float32_dtypem  sN     RYYrzz2%@7878
 	v0r2   c           	     L   \        R RR.R^^.R^^./4      pRp\        P                  ! \        VR7      ;_uu_ 4        \	        W!R7       RRR4       \	        VR	VR
7      p\        \        R4      \        .4      p\        P                  ! WE4       R#   + '       g   i     LP; i)r  ry  rI  r  r  zO^cannot assemble the datetimes: time data ".+" doesn\'t match format "%Y%m%d"\.r_   r   Nrz   r  rN  )
r   rb   rc   rd   r   r   r   r   r(   rS   )r*   r>   rW  r   r-   r.   s   &&    r/   test_dataframe_coerce-TestToDatetimeDataFrame.test_dataframe_coercey  s    $wBAOP' 	 ]]:S11) 2 S?9%893?@
v0 21s   BB#	c                    R pVP                  4       p^VR&   \        P                  ! \        VR7      ;_uu_ 4        \	        WBR7       RRR4       R#   + '       g   i     R# ; i)z?extra keys have been passed to the datetime assemblage: \[foo\]r  r_   r   N)copyrb   rc   rd   r   )r*   rK  r>   r   rW  s   &&&  r/    test_dataframe_extra_keys_raises8TestToDatetimeDataFrame.test_dataframe_extra_keys_raises  sC    PggiE
]]:S11) 2111s   AA$	colsc                    R p\         P                  ! \        VR7      ;_uu_ 4        \        W,          VR7       RRR4       R#   + '       g   i     R# ; i)z`to assemble mappings requires at least that \[year, month, day\] be specified: \[.+\] is missingr_   r   Nr   )r*   rK  r>   rz  r   s   &&&& r/   "test_dataframe_missing_keys_raises:TestToDatetimeDataFrame.test_dataframe_missing_keys_raises  s:    5 	 ]]:S11. 2111s   AA	c                   R p\        RRR.R^^.R^^./4      p. R
OVn        \        P                  ! \        VR7      ;_uu_ 4        \        W1R7       RRR4       \        RRR.R^^.R^^.R	^^./4      p. ROVn        \        P                  ! \        VR7      ;_uu_ 4        \        W1R7       RRR4       R#   + '       g   i     Lo; i  + '       g   i     R# ; i)z#cannot assemble with duplicate keysr  ry  rI  r  r  r_   r   Nr   )r  r  r  )r  r  r  r  )r   r`  rb   rc   rd   r   )r*   r>   r   rW  s   &&  r/   'test_dataframe_duplicate_columns_raises?TestToDatetimeDataFrame.test_dataframe_duplicate_columns_raises  s    3$wBAOP-]]:S11) 2 dD\7QGUQFFQPQFS
 6]]:S11) 21 21 211s   B;$C;C	C	c           	         \        R RR.R^^.R^^./4      p\        VP                  R4      VR7      p\        \	        R4      \	        R4      .4      p\
        P                  ! W44       R	# )
r  ry  rI  r  r  int16r   rN  20160305 00:00:00N)r   r   r  r   r   r(   rS   r*   r>   rK  r-   r.   s   &&   r/   test_dataframe_int16,TestToDatetimeDataFrame.test_dataframe_int16  sj    tg1vuq!fMN RYYw/u=*+Y7J-KL
 	v0r2   c           	     "   \        R RR.R^^.R^^./4      pVR,          P                  R4      VR&   VR,          P                  R4      VR&   \        W!R7      p\        \	        R4      \	        R4      .4      p\
        P                  ! W44       R	# )
r  ry  rI  r  r  int8r   rN  r  N)r   r  r   r   r   r(   rS   r  s   &&   r/   test_dataframe_mixed,TestToDatetimeDataFrame.test_dataframe_mixed  s    tg1vuq!fMNk((07uI$$V,5	R-*+Y7J-KL
 	v0r2   c           	         \        R RR.RR^.R^^./4      pRp\        P                  ! \        VR7      ;_uu_ 4        \	        W!R7       R	R	R	4       R	#   + '       g   i     R	# ; i)
r  r   r   r  r  r  z\^cannot assemble the datetimes: unconverted data remains when parsing with format ".*": "1".r_   r   N)r   rb   rc   rd   r   )r*   r>   rK  r   s   &&  r/   test_dataframe_float,TestToDatetimeDataFrame.test_dataframe_float  sY    tgQxAOP& 	 ]]:S11( 2111s   AA&	c           	         \        R RR.R^^.R^^./4      p\        VRR7      p\        \        P                  ! RR.R	R
7      4      P
                  P                  R4      p\        P                  ! W#4       R# )r  ry  rI  r  r  Tr  z
2015-02-04z
2016-03-05r  r!   r   N)	r   r   r   r$   r%   r   tz_localizer(   rS   )r*   rK  r-   r.   s   &   r/   test_dataframe_utc_true/TestToDatetimeDataFrame.test_dataframe_utc_true  sp    tg1vuq!fMNRT*HHlL19IJ

"[[ 	 	v0r2   r  N)r  r  rJ  )r  r  rJ  )r  r  r  r  rb   fixturerK  rS  rY  r  r  rc  ri  rm  rq  rt  rx  r|  r  r  r  r  r  r  r  r  s   @r/   rG  rG    s    ^^
 
1	2 [[ v)) u((	
*1+*11,	1
11* [[HW'e%	
	/	/*	1	1)1 1r2   rG  c                      a  ] tR tRt o R t]P                  P                  RRR.RR..4      R 4       t]P                  P                  R. R9O4      ]P                  P                  R
RR.4      R 4       4       t	]P                  P                  R. R:O4      R 4       t
]P                  P                  R. R;O4      R 4       t]P                  P                  R. R<O4      R 4       t]P                  P                  R. R=O4      R 4       t]P                  P                  R. R>O4      R 4       t]P                  P                  R. R?O4      R 4       tR t]P                  P#                  RR7      R 4       tR tR t]P,                  R 4       tR t]P,                  ]P                  P                  RRR.4      R 4       4       tR  tR! tR" tR# tR$ t]P                  P                  R%]! R	4      ] ! R	4      .4      R& 4       t!R' t"R( t#R) t$R* t%R+ t&R, t'R- t(R. t)R/ t*]P                  P                  R0. R@O4      R1 4       t+R2 t,R3 t-R4 t.]P                  P                  R5]/]0Pb                  .4      R6 4       t2R7t3V t4R8# )ATestToDatetimeMisci  c                    \         P                  ! 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2262-04-11 23:47:16.854775808r!   z'^Out of bounds nanosecond timestamp: .*r_   N)r$   r%   r&   rb   rc   r   r   )r*   r,   r   s   &  r/   %test_to_datetime_barely_out_of_bounds8TestToDatetimeMisc.test_to_datetime_barely_out_of_bounds  sF     hh78G7]].c:: ;:::s   AA+	zarg, exp_str2012-01-01 00:00:0020121001z
2012-10-01c                X    \        V.VR 7      p\        V4      pV^ ,          V8X  g   Q hR# r  rH   )r*   r>   rI   exp_strr-   r   s   &&&&  r/   test_to_datetime_iso8601+TestToDatetimeMisc.test_to_datetime_iso8601  s.     cU%0 ayCr2   zinput, format2012r   TFc                    \         P                  ! \        R V RV R2R7      ;_uu_ 4        \        WVR7       RRR4       R#   + '       g   i     R# ; i)time data \"z\" doesn't match format \"\"r_   r   Nr   )r*   rt  r=   r   s   &&&&r/   test_to_datetime_iso8601_fails1TestToDatetimeMisc.test_to_datetime_iso8601_fails  sM    " ]]"5')HPRS
 
 E:	
 
 
 
s   AA	c                    R P                  R\         R2R\         R2.4      p\        P                  ! \        VR7      ;_uu_ 4        \        WR7       RRR4       R#   + '       g   i     R# ; i)r   r   r   z+^time data ".*" doesn't match format ".*". r_   r   Nr   )r*   rt  r=   r   s   &&& r/   $test_to_datetime_iso8601_exact_fails7TestToDatetimeMisc.test_to_datetime_iso8601_exact_fails
	  sl     hhQ"#1&>>OqQ
 ]]
 
 -	
 
 
 
s   AA0	c                J    \        R ^^4      p\        WRR7      pWC8X  g   Q hR# )  Fr   Nr   r   r*   rt  r=   r.   r-   s   &&&  r/   "test_to_datetime_iso8601_non_exact5TestToDatetimeMisc.test_to_datetime_iso8601_non_exact$	  s*     T1a(U?!!!r2   c                    \         P                  ! \        R V RV R2R7      ;_uu_ 4        \        WR7       RRR4       R#   + '       g   i     R# ; i)r  z\" doesn\'t match format \"r  r_   r   Nr   )r*   rt  r=   s   &&&r/   "test_to_datetime_iso8601_separator5TestToDatetimeMisc.test_to_datetime_iso8601_separator3	  sK     ]]"5')I&QST
 
 -	
 
 
 
s   AA	c                H    \        R ^^4      p\        WR7      pWC8X  g   Q hR# r7  r   Nr  r  s   &&&  r/   test_to_datetime_iso8601_valid1TestToDatetimeMisc.test_to_datetime_iso8601_validH	  (    $ T1a(U2!!!r2   c                H    \        R ^^4      p\        WR7      pWC8X  g   Q hR# r  r  r  s   &&&  r/   #test_to_datetime_iso8601_non_padded6TestToDatetimeMisc.test_to_datetime_iso8601_non_padded^	  r  r2   c                h    \        R ^^\        P                  R7      p\        WR7      pWC8X  g   Q hR# )r7  r   r   N)r   r   r   r   r  s   &&&  r/   ,test_to_datetime_iso8601_with_timezone_valid?TestToDatetimeMisc.test_to_datetime_iso8601_with_timezone_validt	  s.     T1a=U2!!!r2   c                J    \        R VR7      p\        R^^4      pW#8X  g   Q hR# )2001r   r   Nr  )r*   r>   rsxps   &&  r/   test_to_datetime_default+TestToDatetimeMisc.test_to_datetime_default	  s%    u-dAq!xxr2   z1fails to enforce dayfirst=True, which would raiser  c           
     (   R p\         P                  ! \        VR7      ;_uu_ 4        \        P                  ! \
        RR7      ;_uu_ 4        \        RRVR7       RRR4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)zInvalid date specifiedr_   zProvide formatz
01-13-2012Tdayfirstr>   Nr  r7  s   && r/   "test_to_datetime_respects_dayfirst5TestToDatetimeMisc.test_to_datetime_respects_dayfirst	  s`    
 ']]:S11 ++K?OPPL4uE Q 21 QP 211s#   %B A-	B -A=8B  B	c                x    \        \        R ^
R7      4      p\        W!R7      pV^ ,          V^ ,          8X  g   Q hR# )r;   r  r   N)r   r   r   )r*   r>   rU   r-   s   &&  r/   %test_to_datetime_on_datetime64_series8TestToDatetimeMisc.test_to_datetime_on_datetime64_series	  s3    Z
B78S.ayCF"""r2   c                h   \        . R
O4      pR\         R2p\        P                  ! \        VR7      ;_uu_ 4        \        VRVR7       RRR4       \        VRVR7      p\        \        R^
^4      \        R	^
^4      \        .4      p\        P                  ! WE4       R#   + '       g   i     L^; i)
10/18/2006z1^time data " " doesn\'t match format "%m/%d/%Y". r   r_   rp   r  Nrz   i  r  )r  z
10/18/2008 )
r   r   rb   rc   rd   r   r   r   r(   rS   )r*   r>   rU   r   result_coerceexpected_coerces   &&    r/   %test_to_datetime_with_space_in_series8TestToDatetimeMisc.test_to_datetime_with_space_in_series	  s    67@_DUUVW 	 ]]:S11G59 2#CF (4R"8(4R:PRU!VW
}>	 21s   B!!B1	c                    \        . RO. ROR7      p\        VRVR7      pVP                  ! \        RVR7      p\        P                  ! WC4       R# )May 04rV  %b %yr<   N)r  Jun 02zDec 11r        r   r   rQ   r(   rS   )r*   r>   r  r.   r-   s   &&   r/   test_to_datetime_with_apply.TestToDatetimeMisc.test_to_datetime_with_apply	  s?    
 2)Dr'?+gUC
v0r2   c                h    \        R RR7      p\        R^^4      P                  R4      pW8X  g   Q hR# )z2020-01-01 00:00:00UTCz%Y-%m-%d %H:%M:%S%Zr   r7  r   N)r   r   r  r   s   &  r/   test_to_datetime_timezone_name1TestToDatetimeMisc.test_to_datetime_timezone_name	  s5    5>STT1a(44U;!!!r2   rr   rp   rz   c                   a \        . RO. ROR7      p\        VRVSR7      pVP                  ! V3R l4      p\        P                  ! WT4       R# )r  rV  r  rq   c                 "   < \        V R RSR7      # )r  rz   rq   r   )rV   r>   s   &r/   rV  OTestToDatetimeMisc.test_to_datetime_with_apply_with_empty_str.<locals>.<lambda>	  s    k!GHERr2   N)r  r  r   r  r  )r*   r>   rr   r  r.   r-   s   &f&   r/   *test_to_datetime_with_apply_with_empty_str=TestToDatetimeMisc.test_to_datetime_with_apply_with_empty_str	  sC     ,I>r'&NR
 	v0r2   c                8    \        R VR7      pV\        J g   Q hR# r   r   Nr,  r*   r>   r-   s   && r/   test_to_datetime_empty_stt-TestToDatetimeMisc.test_to_datetime_empty_stt	  s    Ru-}}r2   c                f    \        R R .VR7      p\        V4      P                  4       '       g   Q hR# r  )r   r   r  r  s   && r/   test_to_datetime_empty_str_list2TestToDatetimeMisc.test_to_datetime_empty_str_list	  s+    b"XU3F|!!!!r2   c                F    \        ^ 4      p\        ^ VR7      pW#8X  g   Q hR# )rZ  r   Nr  )r*   r>   r-   r.   s   &&  r/   test_to_datetime_zero(TestToDatetimeMisc.test_to_datetime_zero	  s#    1q.!!!r2   c                Z    \        R .VR7      ^ ,          p\        R VR7      pW28X  g   Q hR# )r  r   Nr   )r*   r>   r.   r-   s   &&  r/   test_to_datetime_strings+TestToDatetimeMisc.test_to_datetime_strings	  s-    xu5a8V51!!!r2   c                    . ROpV Uu. uF  p\        W1R7      NK  	  ppV Uu. uF  p\        V4      NK  	  pp\        P                  ! Wd4       R# u upi u upi )r  r   N)r  20120101z20120101 12:01:01)r   r   r(   r<  )r*   r>   r%   r  r.   date_strr-   s   &&     r/   "test_to_datetime_strings_variation5TestToDatetimeMisc.test_to_datetime_strings_variation	  sP    9CHI5K45I6;<e()H%e<
v0 J<s
   AAr-   c                0    \        R ^^4      pW8X  g   Q hR# )r  N)r   r   s   && r/   'test_to_datetime_strings_vs_constructor:TestToDatetimeMisc.test_to_datetime_strings_vs_constructor	  s    T1a(!!!r2   c                    R p\         P                  ! \        VR7      ;_uu_ 4        \        ^R.RVR7       RRR4       R#   + '       g   i     R# ; i)z-^Given date string "1" not likely a datetime$r_   1rp   r  Nr   r7  s   && r/   $test_to_datetime_unprocessable_input7TestToDatetimeMisc.test_to_datetime_unprocessable_input	  s9     >]]:S11C> 2111rj  c                    \         P                  ! R 4      P                  R4      pVP                  R4      p\	        V.4      pV^ ,          VP                  R4      8X  g   Q h\        V4      pWB8X  g   Q hR# )l    `SD& r]   ON)r$   r  viewr  r   r   )r*   r  as_objrQ  r   s   &    r/   'test_to_datetime_other_datetime64_units:TestToDatetimeMisc.test_to_datetime_other_datetime64_units	  se    *+00:s#vh'Qx6==----&!r2   c                    \        R ^RR7      p\        VP                  4      p\        VP                  4      p\        V4      p\
        P                  ! W4       R# )r;   r   )r  r  N)r   r   rC   r  asi8r(   r)   )r*   rngintsr-   s   &   r/   !test_to_datetime_list_of_integers4TestToDatetimeMisc.test_to_datetime_list_of_integers	  sC    Rd;CJJ'CHH~t$
c*r2   c           	         R p\         P                  ! \        VR7      ;_uu_ 4        \        RRRRR7       RRR4       R#   + '       g   i     R# ; i)z>Cannot cast 139999 days 00:00:00 to unit='ns' without overflowr_   z1/1/1700Br]  r   )startr  r  r  N)rb   rc   r   r   r*   r   s   & r/   r4  ,TestToDatetimeMisc.test_to_datetime_overflow 
  s9     O]]/s;;Zc6M <;;;r  c                   \        \        P                  .R ,          R.,           \        P                  R7      p\	        VRRR7      p\        \
        .R ,          \        R4      .,           RR7      p\        P                  ! W#4       R# )	  g  @昃Ar!   r{  rz   r  z2024-04-04 08:23:53datetime64[s]N)	r   r$   ra   r  r   r   r   r(   rS   )r*   rU   r-   r.   s   &   r/   5test_to_datetime_float_with_nans_floating_point_errorHTestToDatetimeMisc.test_to_datetime_float_with_nans_floating_point_error
  sd    bffX_~5RZZHSs8<EDLI&;<==_
 	v0r2   c                    \         P                  ! R .\        R7      p\        P                  ! \
        RR7      ;_uu_ 4        \        VRVR7       RRR4       R#   + '       g   i     R# ; i)87156549591102612381000001219H5r!   Unknown datetime string formatr_   rp   r  N)r$   r%   r&   rb   rc   rd   r   )r*   r>   invalids   && r/   test_string_invalid_operation0TestToDatetimeMisc.test_string_invalid_operation
  sF    ((=>fM ]]:-MNNu= ONNNs   AA,	c                   \         P                  ! R R\         P                  R.\        R7      p\         P                  ! ^RR7      p\        V4       F-  w  rE\        V4      '       d   \        W4&   K   \        V4      W4&   K/  	  \        P                  ! V4      ^ ,          p\        P                  ! Wc4       \        W!R7      p\        V\        4      '       g   Q h\        P                   ! WgP"                  4       R# )r;   r?   z1/4/2000r!   r]   r   N)r$   r%   ra   r&   empty	enumerater   r
   r   r	   array_to_datetimer(   r<  r   r  r   assert_numpy_array_equalrC   )r*   r>   stringsr.   r-  r   r-   r&  s   &&      r/   test_string_na_nat_conversion0TestToDatetimeMisc.test_string_na_nat_conversion
  s     ((J
BFFJGvV88AX.(FACyy"#Cj	 ) ((1!4
v0g3'=1111
##FNN;r2   c                   \         P                  ! R \         P                  .\        R7      pRp\        P
                  ! \        VR7      ;_uu_ 4        \        VRVR7       RRR4       \        P
                  ! \        VR7      ;_uu_ 4        \        VRVR7       RRR4       R#   + '       g   i     LM; i  + '       g   i     R# ; i)z
1/100/2000r!   r  r_   rp   r  N)r$   r%   ra   r&   rb   rc   rd   r   )r*   r>   	malformedr   s   &&  r/   'test_string_na_nat_conversion_malformed:TestToDatetimeMisc.test_string_na_nat_conversion_malformed*
  s    HHlBFF36B	 0]]:S11	'? 2 ]]:S11	'? 21 21 211s   B'B:'B7	:C	c                   . ROp\        R\        P                  R\        P                  R.VRR7      p\        \        RVR7      \        P                  \        RVR7      \        P                  \        RVR7      .VRR7      p\        W1R7      p\        WAR7      p\        \        P                  ! ^RR7      VR	7      p\        ^4       FU  pVP                  V,          p	\        V	4      '       d   \        VP                  V&   K<  \        WR7      VP                  V&   KW  	  \        P                  ! WWR
R7       VP                  R8X  g   Q h\        P                  ! WgR
R7       VP                  R8X  g   Q hR# )rA  r;   r@   z1/5/2000r  rQ  r  r   r]   r!   rV  F)check_namesN)rA  r  crh  e)r   r$   ra   r   r  r  ru  r   r   r(   rS   r  )
r*   r>   idxseriesdseriesr-   dresultr.   r-  rV   s
   &&        r/   'test_string_na_nat_conversion_with_name:TestToDatetimeMisc.test_string_na_nat_conversion_with_name5
  s)   'RVVZ@RW
 Je4Je4Je4 

 V1g3"((1H5SAqAAAAww#&a #.q#>a   	vUC{{e###
weD||u$$$r2   r  c                   \         P                  ! R V R24      p\        . ROVR7      pVP                  P	                  V4      pVR9   d   Rp\         P                  ! R V R24      p\        VP	                  V4      4      pVP                  V8X  g   Q h\        P                  ! \        V4      V4       \        P                  ! \        WQR7      V4       R# )r   rl  r   r{  N)z2000-01-01T00:00z2000-01-02T00:00r   )hm)r$   r"   r   rC   r  r   r(   r)   )r*   r>   r  r"   baserC   	exp_dtyper.   s   &&&     r/   $test_dti_constructor_numpy_timeunits7TestToDatetimeMisc.test_dti_constructor_numpy_timeunitsW
  s     3tfA'JRWX##E*:DHHs4&]+	 Y!78~~***
mF3X>
k&>Ir2   c           	        . ROp\        \        R^^
4      \        R^^4      \        R^^4      .4      p\        VRR7      p\        \        P                  ! V4      RR7      p\	        VRVR7      p\	        \        P                  ! V4      RVR7      p\        \        V4      RR7      p\        \        V4      RR7      p	\        P                  ! W44       \        P                  ! W54       \        P                  ! W64       \        P                  ! W74       \        P                  ! W84       \        P                  ! W94       R# )
10/02/2014rx  Tr  r  N)r8  z
11/02/2014z
12/02/2014)	r   r   r$   r%   r   r   r   r(   r)   )
r*   r>   r,   r.   idx1idx2idx3idx4idx5idx6s
   &&        r/   test_dayfirst TestToDatetimeMisc.test_dayfirstl
  s    8 dAr"HT1b$98D!R;PQ
 S40RXXc]T:3U;288C=4uEU3Z$7VC[48
h-
h-
h-
h-
h-
h-r2   c                @   R pRR.p\        RR.RRR7      p\        VRR	7      p\        P                  ! W44       \        P                  ! \
        VR
7      ;_uu_ 4        \        VRR	7      pRRR4       \        P                  ! VX4       R#   + '       g   i     L); i)zzParsing dates in .* format when dayfirst=.* was specified. Pass `dayfirst=.*` or specify a format to silence this warning.
31/12/2014z
10/03/2011ru   z
2011-03-10r  Nr  Tr9  r_   F)r   r   r(   r)   rV  rU  )r*   warning_msgr,   r.   res1res2s   &     r/   "test_dayfirst_warnings_valid_input5TestToDatetimeMisc.test_dayfirst_warnings_valid_input
  s    N 	 \* <(0@t

 3.
h- '';GGsU3D H
h- HGs   BB	c                    R R.p\         P                  ! \        R\         R2R7      ;_uu_ 4        \	        VRR7       RRR4       R#   + '       g   i     R# ; i)rC  z
03/30/2011z:^time data "03/30/2011" doesn\'t match format "%d/%m/%Y". r   r_   Tr9  N)rb   rc   rd   r   r   )r*   r,   s   & r/   $test_dayfirst_warnings_invalid_input7TestToDatetimeMisc.test_dayfirst_warnings_invalid_input
  sU     \*]]  /03
 
 d+
 
 
 
s   A		A	klassc                    \        R ^R7      P                  R4      pVP                  R4      pV! V4      pV! V4      p\        VRR7      p\        P
                  ! WS4       R# )z
2015-04-05r  r  r   Tr  N)r   rb  r  r   r(   rA   )r*   rL  r  r.   objr-   s   &&    r/   test_to_datetime_dta_tz*TestToDatetimeMisc.test_to_datetime_dta_tz
  sS     q188???5)Cj?Sd+
)r2   r  N))r  %Y-%m)z2012-01r   )
2012-01-01r   )2012-01-01 10r   )2012-01-01 10:00r   )2012-01-01 10:00:00r   )z2012-01-01 10:00:00.123r   rZ  r   )rR  rQ  )rS  r   )rT  r   )rU  r   rV  )rW  )z2012-01-01 00r   )z2012-01-01 00:00r   )r  r   ))2020-01z%Y/%m)rH  z%Y/%m/%d)2020-01-01 00z%Y/%m/%dT%H)2020-01-01T00z%Y/%m/%d %H)2020-01-01 00:00z%Y/%m/%dT%H:%M)2020-01-01T00:00z%Y/%m/%d %H:%M)2020-01-01 00:00:00z%Y/%m/%dT%H:%M:%S)2020-01-01T00:00:00z%Y/%m/%d %H:%M:%S))rX  rQ  )rH  r   )rY  r   )rZ  %Y-%m-%dT%H)r[  r   )r\  %Y-%m-%dT%H:%M)r]  r   )r^  %Y-%m-%dT%H:%M:%S)z2020-01-01T00:00:00.000%Y-%m-%dT%H:%M:%S.%f)z2020-01-01T00:00:00.000000rb  )z2020-01-01T00:00:00.000000000rb  ))z2020-1rQ  )z2020-1-1r   )z
2020-1-1 0r   )z
2020-1-1T0r_  )z2020-1-1 0:0r   )z2020-1-1T0:0r`  )z2020-1-1 0:0:0r   )z2020-1-1T0:0:0ra  )z2020-1-1T0:0:0.000rb  )z2020-1-1T0:0:0.000000rb  )z2020-1-1T0:0:0.000000000rb  ))z#2020-01-01T00:00:00.000000000+00:00z%Y-%m-%dT%H:%M:%S.%f%z)z2020-01-01T00:00:00+00:00%Y-%m-%dT%H:%M:%S%z)z2020-01-01T00:00:00Zrc  )r1  r2  r{  r*  rO  r   )5r  r  r  r  r  rb   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r   r  r  r  r  r4  r  r  r  r#  r.  r5  r@  rG  rJ  r   r   _from_sequencerO  r  r  r  s   @r/   r  r    s     [["$9:&	
  
 [[		
 [[WtUm4; 5; [[	
	.	.  [[	
"" [[		
.. [[	
 "! " [[	
 "! " [[	
""
 [[QR	F S	F#
? 1 1" [[X':;
1 < 
1
"""1 [[X	&(9;v;N'OP" Q"?	+N1><&	@ %D [[)J	J".&.,," [[W}m6R6R&ST	* U	*r2   r  c                      a  ] tR tRt o ]P
                  P                  R. RO]P                  ]P                  R.RR.RR.RR.RR.RR..4      R	 4       t	]
P                  R
 4       tRtV tR# )TestGuessDatetimeFormati
  	test_list2011-12-30 00:00:00.000000r   r   random_stringr  r  c                |    R p\         P                  ! V\        R7      p\        P                  ! V4      V8X  g   Q hR# )r   r!   N)r$   r%   r&   tools _guess_datetime_format_for_array)r*   rg  expected_format
test_arrays   &&  r/   $test_guess_datetime_format_for_array<TestGuessDatetimeFormat.test_guess_datetime_format_for_array
  s2    " 1XXiv6
55jA_TTTr2   c                    \         P                  ! \        P                  ! \        P                  \        P                  \        P                  .R R7      4      pVe   Q hR# )r  r!   N)rk  rl  r$   r%   ra   )r*   format_for_string_of_nanss   & r/   -test_guess_datetime_format_for_array_all_nansETestGuessDatetimeFormat.test_guess_datetime_format_for_array_all_nans
  sB    $)$J$JHHbffbffbff-S9%
! )000r2   r  N)rh  rh  rh  )r  r  r  r  rb   r  r  r$   ra   ro  r  r  rs  r  r  r  s   @r/   rf  rf  
  s     [[
 VVRVV9:-.01)?;0123	
 U! U
 1 1r2   rf  c                   X  a  ] tR tRt o ]P
                  P                  R. RO4      R 4       tR tR t	R t
R t]P
                  P                  R. RO4      R	 4       t]P
                  P                  R
. RO4      R 4       t]P
                  P                  RRR.4      R 4       tRtV tR# )TestToDatetimeInferFormati
  test_formatc                   a \        \        R ^2RR7      4      pVP                  V3R l4      p\        VSVR7      p\        WAR7      p\        P
                  ! WV4       R# )r4   r1  r  r  c                 &   < V P                  S4      # r+  )strftime)rV   rw  s   &r/   rV  dTestToDatetimeInferFormat.test_to_datetime_infer_datetime_format_consistent_format.<locals>.<lambda>
  s    ajj.Er2   r<   r   N)r   r   rQ   r   r(   rS   )r*   r>   rw  rU   s_as_dt_stringswith_formatwithout_formats   &&f    r/   8test_to_datetime_infer_datetime_format_consistent_formatRTestToDatetimeInferFormat.test_to_datetime_infer_datetime_format_consistent_format
  sO     Z
BSAB))$EF!/+US$_B 	{;r2   c                    . ROp\        \        P                  ! V4      4      pR\         R2p\        P
                  ! \        VR7      ;_uu_ 4        \        W1R7       RRR4       R#   + '       g   i     R# ; i)01/01/2011 00:00:00zL^time data "01-02-2011 00:00:00" doesn\'t match format "%m/%d/%Y %H:%M:%S". r   r_   r   N)r  z01-02-2011 00:00:00z2011-01-03T00:00:00)r   r$   r%   r   rb   rc   rd   r   )r*   r>   r   rU   r   s   &&   r/   $test_to_datetime_inconsistent_format>TestToDatetimeInferFormat.test_to_datetime_inconsistent_format
  sZ    TRXXd^$%%4$5Q8 	 ]]:S11) 2111s   A))A:	c                    . ROp\        \        P                  ! V4      4      p\        W1R7      p\        . RORR7      p\        P
                  ! WE4       R# )Jan/01/2011r   r  r!   N)r  zFeb/01/2011zMar/01/2011)
2011-01-01z
2011-02-01z
2011-03-01)r   r$   r%   r   r(   rS   )r*   r>   r   rU   r-   r.   s   &&    r/   "test_to_datetime_consistent_format<TestToDatetimeInferFormat.test_to_datetime_consistent_format
  sC    <RXXd^$S.6>N
 	v0r2   c                   \        \        P                  ! R \        P                  R\        P                  .\        R7      4      p\        W!R7      p\        R\        R\        .RR7      p\        P                  ! W44       R# )r  01/03/2011 00:00:00r!   r   r  
2011-01-03r  N	r   r$   r%   ra   r&   r   r   r(   rS   rv   s   &&   r/   !test_to_datetime_series_with_nans;TestToDatetimeInferFormat.test_to_datetime_series_with_nans
  se    HH&0ErvvN
 S.3c2:J
 	v0r2   c           	     
   \        \        P                  ! \        P                  \        P                  R RR.\        R7      4      p\        W!R7      p\        \        \        RRR.RR7      p\        P                  ! W44       R	# )
r  z01/02/2011 00:00:00r  r!   r   r  z
2011-01-02r  r  Nr  rv   s   &&   r/   'test_to_datetime_series_start_with_nansATestToDatetimeInferFormat.test_to_datetime_series_start_with_nans  sp    HHFFFF))) 	
 S.#|\<@HX
 	v0r2   ztz_name, offsetc                    \        R V 2.4      p\        V4      p\        \        VR7      4      p\        \	        R4      P                  V4      .4      p\        P                  ! WF4       R# )z2019-02-02 08:07:13 r   2019-02-02 08:07:13N)r   r   r   r   r   r  r(   rS   )r*   tz_namer   rU   r-   r   r.   s   &&&    r/   "test_infer_datetime_format_tz_name<TestToDatetimeInferFormat.test_infer_datetime_format_tz_name  s^     ,WI678S!i/09%:;GGKLM
v0r2   z
ts,zero_tzc                    \        W,           .4      p\        V4      pVR 8X  d   \        P                  MRp\        \	        WR7      .4      p\
        P                  ! WF4       R# )ZNr   )r   r   r   r   r   r(   rS   )r*   r  zero_tzrU   r-   r   r.   s   &&&    r/   "test_infer_datetime_format_zero_tz<TestToDatetimeInferFormat.test_infer_datetime_format_zero_tz#  sM     bl^$S!$^X\\9R/01
v0r2   r=   Nr   c                    \        . RO4      p\        \        R4      \        R4      \        R4      .4      p\        W2VR7      p\        P                  ! WT4       R# )2014-1-1z
2014-01-01z
2014-02-02z
2015-03-03r<   N)r  z2014-2-2z2015-3-3r$  )r*   r>   r=   rU   r.   r-   s   &&&   r/   %test_to_datetime_iso8601_noleading_0s?TestToDatetimeInferFormat.test_to_datetime_iso8601_noleading_0s4  sR     9:,',','
 Su=
v0r2   r  )z%m-%d-%Yz%m/%d/%Y %H:%M:%S.%frb  ))r   rZ  )zUTC-3   )zUTC+3iL))r  r  )r  r   )2019-02-02 08:07:13.012345r  )r  r   )r  r  r  r  rb   r  r  r  r  r  r  r  r  r  r  r  r  r  s   @r/   rv  rv  
  s     [[S<<*111( [[51	1 [[	
11 [[Xj'9:1 ;1r2   rv  c                   >  a  ] tR tRt o ]P
                  P                  RRR.RR.RR.RR..4      R 4       tR	 t]P
                  P                  R
RRR]	 R]
 R23RRR]	 R]
 R23RRR]
 R23RRR]
 R23RRR]	 R]
 R23RRR]	 R]
 R23.4      R 4       tRtV tR# )TestDaysInMonthiC  r  
2015-02-29Nr   z
2015-02-32z
2015-04-31c           	     D    \        \        VR W1R7      4      '       g   Q hR# )rz   rr   r=   r>   N)r   r   )r*   r>   rI   r=   s   &&&&r/   test_day_not_in_month_coerce,TestDaysInMonth.test_day_not_in_month_coerceF  s     KHVQRRRRr2   c                    \         '       d   R pMRp\        P                  ! \        VR7      ;_uu_ 4        \	        RRVR7       RRR4       R#   + '       g   i     R# ; i)zBday 29 must be in range 1..28 for month 2 in year 2015: 2015-02-29z)day is out of range for month: 2015-02-29r_   r  rp   r  N)r   rb   rc   rd   r   r7  s   && r/   test_day_not_in_month_raise+TestDaysInMonth.test_day_not_in_month_raiseR  s=    5VC=C]]:S11WEB 2111s   AA 	zarg, format, msg^z. r   z
2015-29-02r   zD^unconverted data remains when parsing with format "%Y-%m-%d": "2". z
2015-32-02z9^time data "2015-32-02" doesn't match format "%Y-%d-%m". z
2015-31-04c           	         \         P                  ! \        VR 7      ;_uu_ 4        \        VRW1R7       RRR4       R#   + '       g   i     R# ; i)r_   rp   r  Nr   )r*   r>   rI   r=   r   s   &&&&&r/   !test_day_not_in_month_raise_value1TestDaysInMonth.test_day_not_in_month_raise_valueZ  s1    N ]]:S11GFH 2111s	   >A	r  )r  r  r  r  rb   r  r  r  r  DAY_IS_OUT_OF_RANGEr   r  r  r  r  s   @r/   r  r  C  sJ     [[4 :&:&:&		
SSC [[ '(?*;1= '(?*;1= V"#1& L"#1& '(?*;1= '(?*;1=9!	
$JIK$JIr2   r  c                   *  a  ] tR tRt o ]P
                  P                  R. R]! R^^4      3NR]! R^^4      3NR]! R^^4      3NR]! R^^4      3NR	]! R^^4      3NR
]! R^^4      3NR]! R^^4      3NR]! R^^4      3NR]! R^^4      3NR]! R^
^4      3NR]! R^
^4      3NR]! R^
^4      3NR]! R^
^4      3NR]! R^
^4      3NR]! R^
^4      3NR]! R^
^4      3NR]! R^
^4      3NR]! R^
^4      3NR]! R^
^4      3NR]! R^^4      3NR]! R^^4      3NR]! R^^4      3NR]! R^^4      3NR]! R^^4      3NR]! R^^4      3NR ]! R^^	4      3NR!]! R^^	^
^4      3NR"]! R^^	^^ 4      3NR#]! R^^	^
^4      3NR$]! R^^	^^ 4      3NR%]! R^^	^
^4      3NR&]! R^^	^
^^ 4      3NR']! R^^	^
^^ 4      3NR(]! R^^	^^^ 4      3NR)]! R^^	^^ 4      3NR*]! R+^	^^
^$^4      3NR,]! R+^	^4      3NR-]! R+^	^4      3NR.]! R/^^4      3NR0]! R/^^4      3NR1]! R/^^4      3NR2]! R/^^4      3NR3]! R/^^4      3NR4]! R5^^^4      3NR6]! R5^^^^"4      3NR7]! R5^^^^"^84      3N4      R8 4       tR9 t	R: t
]P
                  P                  R;R<R=R=]! R>^
^4      3R<R?R=]! R>^^
4      3R<R=R?]! R@^^4      3R<R?R?]! R@^^4      3RAR=R=]! RB^^4      3RAR?R=]! RB^^4      3RAR=R?]! R^^4      3RAR?R?]! R^^4      3RCR?R=]! R^^
4      3.	4      RD 4       t]P
                  P                  RERF]! ^^^^
^4      .RG]! ^^^^	^4      ..4      RH 4       t]P
                  P                  RIRJ]! ]! RKRL7      4      RM3RN]! ]! RORL7      4      RP3.4      RQ 4       tRRtV tRS# )TTestDatetimeParsingWrappersi  zdate_str, expectedr  i  2Q2005i  2Q052005Q105Q12011Q311Q33Q20113Q112000Q4r   00Q44Q20004Q002000q4z2000-Q4z00-Q4z4Q-2000z4Q-0000q42005z2005-11z2005 11z11-2005z11 2005200511r7  20051109z20051109 10:15z20051109 08Hz2005-11-09 10:15z2005-11-09 08Hz2005/11/09 10:15z2005/11/09 10:15:32z2005/11/09 10:15:32 AMz2005/11/09 10:15:32 PMz2005/11/09 08HzThu Sep 25 10:36:28 2003i  zThu Sep 25 2003zSep 25 2003zJanuary 1 2014rx  z2014-06z06-2014z2014-6z6-2014z20010101 12r   z20010101 1234z20010101 123456c                |   R p\         P                  ! WR7      w  rVRR/P                  VR4      p\        WR7      p\        V.VR7      p	\        \        P
                  ! V.\        R7      WCR7      p
\        V.VR7      p\        \        V.4      VR7      p\        \        V.4      VR7      pWX3 F  pW8X  d   K  Q h	  WWV3 F=  p\        \        V4      .4      P                  V4      p\        P                  ! W4       K?  	  V'       g/   \        V4      pVV8X  g   Q h\        VR^VR7      pVV8X  g   Q hR	# R	# )
T)	yearfirst
nanosecondr   rO  r!   )r  r>   S)r  r  r  N)r   parse_datetime_string_with_resogetr   r$   r%   r&   r   r   r   r   r#  r(   r)   r   )r*   r  r.   r>   r  r%  reso_attrnameresor&  r'  rA  result6result8result9r3  r   result5result7s   &&&&              r/   test_parsers(TestDatetimeParsingWrappers.test_parsers  s=   p 	!(!H!H"

 $

#mT
" 	 h<xjI>HHhZv.)
  
i@xj 1YGz 2iH%C?"? &g@C8!4 56>>tDC!!#+ A
 )Gh&&& Q)TGh&&&	 r2   c                |    \        \        \        .R R7      p\        W#.VR7      p\        P                  ! WT4       R# )r  r!   r   N)r   r   r   r(   r)   )r*   r>   unique_nulls_fixtureunique_nulls_fixture2r.   r-   s   &&&&  r/   test_na_values_with_cache5TestDatetimeParsingWrappers.test_na_values_with_cache  s3     #s?;2JRWX
f/r2   c                    \         P                  ! R 4      w  r\        R 4      p\        R 4      p\	        R .4      ^ ,          pV\
        J g   Q hV\
        J g   Q hV\
        J g   Q hV\
        J g   Q hR# )r   N)r   r  r   r   r   r   )r*   r%  _r&  r'  rA  s   &     r/   test_parsers_nat,TestDatetimeParsingWrappers.test_parsers_nat  si    <<UC
e$E"(+#~~#~~#~~#~~r2   z'date_str, dayfirst, yearfirst, expectedz10-11-12Fr  Ti  z20/12/21i  20201012c                   \        W#VR 7      pWe8X  g   Q h\        P                  ! W#VR 7      w  rxV'       g   V'       g   \        V4      p	W8X  g   Q h\	        W#WAR7      p
\        V.W4R 7      ^ ,          pWu8X  g   Q hW8X  g   Q hW8X  g   Q hR# ))r  r  )r  r  r>   N)r   r   r  r   r   r   )r*   r>   r  r  r  r.   dateutil_resultr%  r  r&  r'  rA  s   &&&&&&      r/   test_parsers_dayfirst_yearfirst;TestDatetimeParsingWrappers.test_parsers_dayfirst_yearfirst  s    z  yQ***<<9


 	)G&&&9
  
XSTUV"""""""""r2   zdate_str, exp_defz10:15z9:05c                   \        V4      p\        P                  ! V4      w  rE\        V4      p\        V.4      p\	        V4      p\        V.4      ^ ,          p	WB8X  g   Q hWc8X  g   Q hWs8X  g   Q hW8X  g   Q hW8X  g   Q hR# )rZ  N)r   r   r  r   r   r   )
r*   r  exp_defexp_nowr%  r  r&  r'  rA  r  s
   &&&       r/   test_parsers_timestring3TestDatetimeParsingWrappers.test_parsers_timestringE  s     /<<XF
h'xj)H%
+A. !!!!!!!!!!!!!!!r2   zdt_string, tz, dt_string_reprz2013-01-01 05:45+0545iY  r   z5Timestamp('2013-01-01 05:45:00+0545', tz='UTC+05:45')z2013-01-01 05:30+0530iJ  z5Timestamp('2013-01-01 05:30:00+0530', tz='UTC+05:30')c                    \        R VR7      pVP                  R4      P                  V4      p\        W!R7      pWV8X  g   Q hV\        V4      8X  g   Q hR# )z2013-01-01 00:00:00r   r   N)r   r  r9  repr)r*   r>   	dt_stringr   dt_string_reprr3  dt_times   &&&&&  r/   .test_parsers_timezone_minute_offsets_roundtripJTestDatetimeParsingWrappers.test_parsers_timezone_minute_offsets_roundtrip[  sR    & 0>&11"5i5g...r2   r  N)r  r  r  r  rb   r  r  r   r  r  r  r  r  r   r   r  r  r  r  s   @r/   r  r    s    [[1	
8D!Q/01	
xa+,1	
 XdAq)*1	
 xa+,	1	

 XdAq)*1	
 xa+,1	
 XdAq)*1	
 xa+,1	
 XdAq)*1	
 xb!,-1	
 XdB*+1	
 xb!,-1	
 XdB*+1	
 xb!,-1	
  r1-.!1	
" htR+,#1	
$ r1-.%1	
& htR+,'1	
( XdB*+)1	
* XdAq)*+1	
, r1-.-1	
. r1-./1	
0 r1-.11	
2 r1-.31	
4 xa,-51	
6 $A./71	
8 xb!R<=91	
: XdB1a89;1	
<  $Ar2!>?=1	
> xb!Q:;?1	
@  $Ar2!>?A1	
B #HT2q"b"$EFC1	
D &xb!RR'HIE1	
F &xb!RR'HIG1	
H xb!Q:;I1	
J ($2r2r)JKK1	
L q" 56M1	
N HT1b12O1	
P xa34Q1	
T q!,-U1	
V q!,-W1	
X xa+,Y1	
Z xa+,[1	
\ HT1a45]1	
^ htQ2r:;_1	
` q!RR @Aa1	
4j"'k4j"'H0	 [[1xb"'=>uhtR&<=htR&<=tXdB%;<xb"'=>uhtR&<=htR&<=tXdB%;<uhtR&<=	
B#B#H [[
8Aq!R,	-Aq!Q8O/PQ"	"$ [[' (3/0G (3/0G	
//r2   r  )paramsc                    V P                   # )z1Day and some time units.

* D
* s
* ms
* us
* ns
)r  )r)  s   &r/   unitsr  u  s     ==r2   c                  L    \        R ^
R7      P                  4       P                  # )r  r  )r   to_julian_daterC   r  r2   r/   julian_datesr    s    j"-<<>EEEr2   c                     a  ] tR tRt o R tR tR tR tR t]	P                  P                  RRR	.4      R
 4       t]	P                  P                  R]! R^^4      ]! R^^4      R]P                   ! R4      .4      R 4       t]	P                  P                  RR]3R]3R]3]! ^^^4      ]3.4      R 4       tR tR t]	P                  P                  RR]3RR.4      R 4       t]	P                  P                  R. R O. R!O. R"O.4      R 4       t]	P                  P                  R. R#O. R$O. R%O. R&O.4      R 4       tRtV tR# )'
TestOrigini  c                    \        ^R^R7      p\        R4      pW8X  g   Q h\        ^RRR7      p\        R4      pW8X  g   Q hR# )r  r{  r  originz1970-01-01 00:00:02i ʚ;z2001-09-09 01:46:41NrH   )r*   r  r.   s   &  r/   test_origin_and_unitTestOrigin.test_origin_and_unit  sH    Q/23~~];23~~r2   c                    \        \        VR RR7      4      p\        \        V\        ^ 4      P                  4       ,
          R R7      4      p\        P
                  ! W#4       R# )r  julianr  r  N)r   r   r   r  r(   rS   )r*   r  r-   r.   s   &&  r/   test_julianTestOrigin.test_julian  sM     Ls8LMy|'B'B'DD3O
 	v0r2   c                    \        \        . R
ORRR7      4      p\        \        R4      \        R4      \        R4      .RR7      p\        P                  ! W4       R	# )rZ  r  unixr  z
1970-01-01r  r0  rs   r!   N)rZ  r  r  r  r   s   &  r/   	test_unixTestOrigin.test_unix  sK    ICGH|$i&=y?VW
 	v0r2   c                    \        R RRR7      pVP                  4       R 8X  g   Q hRp\        P                  ! \        VR7      ;_uu_ 4        \        ^RRR7       RRR4       R#   + '       g   i     R# ; i)iR|% r  r  r  r  z&1 is Out of Bounds for origin='julian'r_   N)r   r  rb   rc   rd   )r*   r-   r   s   &  r/   test_julian_round_trip!TestOrigin.test_julian_round_trip  sZ    WXC@$$&'111 7]]:S11(5 2111s   A%%A6	c                    VR 8w  d?   Rp\         P                  ! \        VR7      ;_uu_ 4        \        W!RR7       RRR4       R# R#   + '       g   i     R# ; i)r  z$unit must be 'D' for origin='julian'r_   r  r  Nr   )r*   r  r  r   s   &&& r/   test_invalid_unitTestOrigin.test_invalid_unit  s@    C<8Cz55LXF 65 555s   AA	r  r   r  c                    R p\         P                  ! \        VR7      ;_uu_ 4        \        RRVR7       RRR4       R#   + '       g   i     R# ; i)z(it must be numeric with a unit specifiedr_   z
2005-01-01
1960-01-01r  Nr   )r*   r  r   s   && r/   test_invalid_originTestOrigin.test_invalid_origin  s5     9]]:S11\E 2111   A  A	epochs  r  c           
     ^   \        R ^^4      p\        P                  ! ^\        P                  R7      pVR8X  d   RMTp\	        V Uu. uF!  p\
        P                  ! WaR7      V,           NK#  	  upRV R2R7      p\	        \        WAVR7      4      p\        P                  ! W4       R# u upi )	r  r!   r  r{  r  r   rl  r  N)
r   r$   r+  r  r   r   	Timedeltar   r(   rS   )	r*   r  r  
epoch_1960units_from_epochsro  rV   r.   r-   s	   &&&      r/   
test_epochTestOrigin.test_epoch  s     tQ*
IIarxx83,3E?PQ?P!R\\!(:55?PQz#

 $5&QR
v0 Rs   'B*zorigin, excri  r!  z
13-24-1990c           	         R P                  RV R2RV R2R.4      p\        P                  ! W$R7      ;_uu_ 4        \        \	        \        ^4      4      W1R7       RRR4       R#   + '       g   i     R# ; i)r   zorigin z is Out of Boundsz# cannot be converted to a Timestampz,Cannot cast .* to unit='ns' without overflowr_   r  N)r   rb   rc   r   r  r  )r*   r  excr  r   s   &&&& r/   test_invalid_originsTestOrigin.test_invalid_origins  sf     hh&!23&!DE>
 ]]3**U1XUB +***s    A&&A7	c                    \         P                  ! \        R R7      ;_uu_ 4        \        ^R\	        R^^\
        P                  R7      R7       RRR4       R#   + '       g   i     R# ; i)zmust be tz-naiver_   r  r   r   r  N)rb   rc   rd   r   r   r   r   r-  s   &r/   test_invalid_origins_tzinfo&TestOrigin.test_invalid_origins_tzinfo  s?    ]]:-?@@HT1a,UV A@@@s   *AA*	c                    R p\         P                  ! \        VR7      ;_uu_ 4        \        RR.4       RRR4       R#   + '       g   i     R# ; i)z:Unknown datetime string format, unable to parse: yesterdayr_   r  	yesterdayNr   r  s   & r/   test_incorrect_value_exception)TestOrigin.test_incorrect_value_exception  s4    J]]:S11+./ 2111r  zformat, warningNc                n   Vfa   \        RVR7      p\        V\        4      '       g   Q hVP                  R8X  g   Q hVP                  ^
8X  g   Q hVP
                  ^
8X  g   Q hR # Rp\        P                  ! \        VR7      ;_uu_ 4        \        RVR7       R R R 4       R #   + '       g   i     R # ; i)Nz2417-10-10 00:00:00.00r   iq	  z3unconverted data remains when parsing with format.*r_   )	r   r  r   r  r  r  rb   rc   rd   )r*   r=   r  r3  r   s   &&&  r/   .test_to_datetime_out_of_bounds_with_format_arg9TestOrigin.test_to_datetime_out_of_bounds_with_format_arg  s     >6vFCc9----88t###99?"?77b= =GCz554VD 6555s   B##B4	zarg, origin, expected_strc                    \        VR VR7      p\        V4      pWE8X  g   Q h\        RR RR7      p\        R4      pWE8X  g   Q h\        RR RR7      p\        R4      pWE8X  g   Q hR# )r  r  
1870-01-012069-11-13 00:00:002169-10-20 00:00:00N( 鼫 rH   )r*   rI   r  expected_strr-   r.   s   &&&&  r/   test_processing_order TestOrigin.test_processing_order  sr     Ss6:\*!!!YSF23!!!YSF23!!!r2   zoffset,utc,expc                    R V,           p\        V.RVR7      p\        V.4      P                  R4      p\        P                  ! WV4       R# )z2019-01-01T00:00:00.000r   )r  r   rO  N)r   r#  r(   r)   )r*   r   r   r   rI   r-   r.   s   &&&&   r/   test_arg_tz_ns_unitTestOrigin.test_arg_tz_ns_unit  sC     (&0cU37u%--d3
f/r2   r  )r   N)r   N)r*  r  z2169-11-13 00:00:00)r*  r'  r(  )r+  r'  r)  )r  T2019-01-01T00:00:00.000Z)r  Nr2  )-01:00Tz2019-01-01T01:00:00.000Z)r3  Nz2019-01-01T00:00:00.000-01:00)r  r  r  r  r  r  r  r  r	  rb   r  r  r  r   r   r$   r  r  rd   r   r  r  r!  rU  r$  r-  r0  r  r  r  s   @r/   r  r    s    116G [[VdC[1F 2F [[dAq!T1a MM,'		

1
1 [[j)j!:&aA 34		
	C	CW
0 [[;''	
EE [[#6<<	
""  [[338=		
00r2   r  c            
       v  a  ] tR tRt o ]P
                  P                  R. ROR3. ROR3.4      R 4       t]P
                  P                  RRR.4      R 4       t]P
                  P                  R]	! ]
! R	4      .^3,          4      ]
! R	4      .^3,          ]! ]
! R	4      .^3,          4      .4      R
 4       tRtV tR# )TestShouldCachei-  zlistlike,do_cachingFTc                X    \         P                  ! V\        V4      R R7      V8X  g   Q hR# )gffffff?)check_countunique_shareN)rk  should_cacherT  )r*   listlike
do_cachings   &&&r/   test_should_cache!TestShouldCache.test_should_cache.  s-     xS]QTU	
r2   z%unique_share,check_count, err_messagec                    ^.^
,          p\         P                  ! \        VR7      ;_uu_ 4        \        P                  ! WAV4       RRR4       R#   + '       g   i     R# ; i)   r_   N)rb   rc   AssertionErrorrk  r9  )r*   r8  r7  err_messagerI   s   &&&& r/   test_should_cache_errors(TestShouldCache.test_should_cache_errors;  s?     cBh]]>==s+> >===s   AA"	r:  rb  c                >    \         P                  ! V4      R J g   Q hR# )TN)rk  r9  )r*   r:  s   &&r/   &test_no_slicing_errors_in_should_cache6TestShouldCache.test_no_slicing_errors_in_should_cacheH  s     !!(+t333r2   r  N)
r  r  r  r   r?           	   rZ  )
r  r  r  r  r   r?  rG  rH  rI  rJ  )g      ?   z5check_count must be in next bounds: \[0; len\(arg\)\])
   r  z-unique_share must be in next bounds: \(0; 1\))r  r  r  r  rb   r  r  r<  rB  r   r   r  rE  r  r  r  s   @r/   r5  r5  -  s     [[+U3+T2	


 [[/OE	
?? [[I345:;-./"4I345:;	
44r2   r5  c            	         \        . R
ORR7      p V P                  4       p\        V RR7      p\        \        P                  ! R4      \        P                  ! R4      \        P                  ! R4      \        P                  ! R	4      \        P                  ! R4      .4      p\
        P                  ! W#4       \
        P                  ! W4       R# )r  NInt64r!   r   r  z1970-01-01 00:00:00.000000001z1970-01-01 00:00:00.000000002r   z2043-01-25 23:56:49.213693952)r  r  Nl            N)r   rw  r   r$   r  r(   rS   )rU   ser_copyr3  r.   s       r/   !test_nullable_integer_to_datetimerP  U  s    
*'
:CxxzH
c
%CMM9:MM9:MM% MM9:MM% 	
H 3)3)r2   rL  c                 &   \        V \        4      '       dB   \        P                  ! \        R R7      ;_uu_ 4        \        V! V .4      4       RRR4       R# \        V! V .4      4      pV^ ,          \        J g   Q hR#   + '       g   i     R# ; i)znot convertible to datetimer_   N)r  r   rb   rc   r1  r   r   )nulls_fixturerL  r-   s   && r/   test_na_to_datetimerS  j  sk    -))]]9,IJJ}o./ KJ UM?34ayC KJJs   A??B	rr   rp   rz   zargs, formatr7   r   rD  r!  rE  c                     \        V4      p\        W2V R 7      p\        RR\        .RR7      p\        P                  ! WT4       R# )r   
2016-03-24
2016-03-25r  r!   N)r   r   r   r(   rS   )rr   r[  r=   r  r-   r.   s   &&&   r/   test_empty_string_datetimerW  v  s=     
B 6:F|\37?OPH8,r2   c                      \        ^R.RRR7      p \        RR.RR7      p\        P                  ! W4       \        ^R.RR	R7      p \        P                  ! W4       R
# )r  r   r{  rz   r  z1970-01-01 00:00:01r   r  r!   rp   Nr   r-   r.   s     r/   'test_empty_string_datetime_coerce__unitrZ    sX     !Rs8<F3U;?SH(+ !Rs7;F(+r2   c                    \         p\        \        R 4      VRR7      pVP                  RRR7      P	                  V^R7      pVP
                  P                  4       P                  \        4      R,          Vn        \        VP                  R
,          V R7      pVP                  R
,          p\        P                  ! W44       R	# )1980YSry  FDTr&  )nrandom_stater  r   N):NNNrZ  )r   r   r   to_framesamplerQ  	to_seriesr  rZ   r   ru  r(   rS   )r>   cstarttimesr-   r.   s   &    r/   +test_to_datetime_monotonic_increasing_indexrf    s    Fy(&tDENNTN299FQR9SE++'')007$>EKD)7Fzz$H6,r2   series_lengthc                    \        \        P                  ! R 4      .\        P                  ! R4      .V ,          ,           \        R7      p\	        VRRR7      p\        V Uu. uF  p\        V4      NK  	  up4      pVP                  R8X  g   Q h\        P                  ! W$4       \	        VRRR7      p\        P                  ! WT4       R# u upi )	z1446-04-12 00:00:00+00:00z1991-10-20 00:00:00+00:00r!   rz   T)rr   r   M8[us, UTC]rp   N)	r   r   fromisoformatr&   r   r   r"   r(   rS   )rg  rU   r%  rV   	expected1r'  s   &     r/   2test_to_datetime_cache_coerce_50_lines_outofboundsrl    s     			 ;	<=""#>?@=P	RC
 #hD9Gc2c	!c23I??m+++7.#g48G7. 3s   !Cc                  \    R p Rp\        WR7      p\        R^^^^^RRR7      pW#8X  g   Q hR# )z15/02/2020 02:03:04.123456789z%d/%m/%Y %H:%M:%S.%fr   r7  r   i  )r  r  r  r   r  rJ  microsecondr  NrH   )r  timestamp_formatr-   r.   s       r/   %test_to_datetime_format_f_parse_nanosrp    sG    /I-<F	H r2   c                  j    \        R R.RR7      p \        RR.4      p\        P                  ! W4       R# )rH  z2020-01-01 05:00:00r!  r   r]  Nr   rY  s     r/   test_to_datetime_mixed_iso8601rr    s3    ,(=>yQF35JKLH&+r2   c                  j    \        R R.RR7      p \        RR.4      p\        P                  ! W4       R# )z
01/11/2000z12 January 2000r"  r   z
2000-01-11z
2000-01-12Nr   rY  s     r/   test_to_datetime_mixed_otherrt    s1    ,(9:7KFlL9:H&+r2   r   TFr=   r"  c                     R p\         P                  ! \        VR7      ;_uu_ 4        \        R.WR7       RRR4       R#   + '       g   i     R# ; i)z8Cannot use 'exact' when 'format' is 'mixed' or 'ISO8601'r_   rH  )r   r=   Nr   )r   r=   r   s   && r/   #test_to_datetime_mixed_or_iso_exactrv    s6     EC	z	-	-\N%? 
.	-	-	-r  c                      \         P                  ! \        R R7      ;_uu_ 4        \        RR.RR7       RRR4       R#   + '       g   i     R# ; i)z*Time data 01-01-2000 is not ISO8601 formatr_   rH  
01-01-2000r!  r   Nr   r  r2   r/   4test_to_datetime_mixed_not_necessarily_iso8601_raisery    s3    	z)U	V	V\<0C 
W	V	V	Vr@  c                  r    \        R R.RRR7      p \        P                  ! V \        R\        .4      4       R# )rH  rx  r!  rz   r   r]  N)r   r(   r)   r   r   )r-   s    r/   5test_to_datetime_mixed_not_necessarily_iso8601_coercer{    s5    	|$YxF &-1F0L"MNr2   c                  H    \        R RRR7      p \        R4      pW8X  g   Q hR# )2023-10-15T14:30:00Tr!  r   r=   2023-10-15 14:30:00+00:00NrH   rY  s     r/   )test_to_datetime_iso8601_utc_single_naiver    s(    .DKF45Hr2   c                      R R.p \        V RRR7      p\        \        R4      \        R4      .4      p\        P                  ! W4       R# )z2023-10-15T10:30:00-12:00r}  Tr!  r~  z2023-10-15 22:30:00+00:00r  Nr   r   r   r(   r)   r   r-   r.   s      r/   2test_to_datetime_iso8601_utc_mixed_negative_offsetr    I    ')>?D4	:F	.	/;V1WXH &+r2   c                      R R.p \        V RRR7      p\        \        R4      \        R4      .4      p\        P                  ! W4       R# )2023-10-15T10:30:00+08:00r}  Tr!  r~  2023-10-15 02:30:00+00:00r  Nr  r  s      r/   2test_to_datetime_iso8601_utc_mixed_positive_offsetr    r  r2   c                      . ROp \        V RRR7      p\        \        R4      \        R4      \        R4      .4      p\        P                  ! W4       R# )	r  Tr!  r~  r  z2023-10-15 17:30:00+00:00r  N)r  z2023-10-15T12:30:00-05:00r}  r  r  s      r/   /test_to_datetime_iso8601_utc_mixed_both_offsetsr    sS    D
 4	:F121212	
H &+r2   c                     R p Rp\         P                  ! \        VR7      ;_uu_ 4        \        V 4       RRR4       \         P                  ! \        VR7      ;_uu_ 4        \	        V 4       RRR4       \         P                  ! \        VR7      ;_uu_ 4        \	        V .4       RRR4       R#   + '       g   i     L; i  + '       g   i     L^; i  + '       g   i     R# ; i)z2014 Jan 9 05:15 FAKEz .*un-recognized timezone "FAKE".r_   N)rb   rc   rd   r   r   )dtstrr   s     r/   test_unknown_tz_raisesr    s    #E
,C	z	-	-% 
. 
z	-	-E 
.	z	-	-UG 
.	- 
.	- 
.	-	-	-	-s#   B0!CC0C 	C	C'	c            	          R Rr\        V .\        ,          V.,           4      pRp\        P                  ! \        VR7      ;_uu_ 4        \        VRRRR7       RRR4       R#   + '       g   i     R# ; i)z
2024-01-01Nz-time data "N" doesn't match format "%Y-%m-%d"r_   r   Tr   N)r   r   rb   rc   rd   r   )validr  rU   r   s       r/   test_unformatted_input_raisesr  (  sU    !37
%++wi7
8C
:C	z	-	-C
$dC 
.	-	-	-s   	A##A4	c                     \         P                  ! R 4       \        ^^.V P                  4        R2R7      p\	        V4      p\        ^^.RR7      p\
        P                  ! W#4       R# )r  z	[pyarrow]r!   r  N)rb   r  r   lowerr   r(   rS   )any_numeric_ea_dtyperU   r-   r.   s   &   r/   test_from_numeric_arrow_dtyper  1  s[    
	"
!Q"6"<"<">!?yI
JCFq!f$45H6,r2   c                     R R.p \        V RR7      p\        \        R 4      R.RR7      p\        P                  ! W4       \        V 4      p\        P                  ! W24       \        V 4      p\        P                  ! WB4       R# )2020-01-01 00:00+00:00r   r"  r   r   ri  r!   N)r   r   r   r(   r)   r   )r$  r-   r.   r  alt2s        r/   6test_to_datetime_with_empty_str_utc_false_format_mixedr  :  so    $b)Dg.Fi 895AWH&+ d
C#(D$)r2   c                      R p \         P                  ! \        V R7      ;_uu_ 4        \        . RORR7       RRR4       R#   + '       g   i     R# ; i)r   r_   r"  r   N)r  z2020-01-01 00:00+02:00r   r   )r   s    r/   Btest_to_datetime_with_empty_str_utc_false_offsets_and_format_mixedr  H  s4    
BC	z	-	-DW	
 
.	-	-	-r  c                     \        R RR7      p RpW.pRp\        P                  ! \        VR7      ;_uu_ 4        \	        V4       RRR4       \        P                  ! \        VR7      ;_uu_ 4        \	        VRR7       RRR4       \        P                  ! \        VR7      ;_uu_ 4        \        V4       RRR4       R#   + '       g   i     L; i  + '       g   i     L]; i  + '       g   i     R# ; i)	z2016-01-02 03:04:05r   r   z2023-10-30 15:06+01sMixed timezones detected. Pass utc=True in to_datetime or tz='UTC' in DatetimeIndex to convert to a common timezoner_   Nr"  r   )r   rb   rc   rd   r   r   )r  r  r,   r   s       r/   &test_to_datetime_mixed_tzs_mixed_typesr  R  s     
(\	:B!E+C	;  
z	-	-C 
.	z	-	-C( 
.	z	-	-c 
.	-	 
.	-	-	-	-	-	-s#   C1C+C'C	C$	'C8	c                  r   R p \        V 4      pW.p\        V4      p\        VRRR1,          4      RRR1,          p\        VRR7      p\        V4      p\        W.4      p\        P                  ! W74       \        P                  ! WG4       \        P                  ! WW4       \        P                  ! Wg4       R# )z2023-11-01 09:22:03-07:00Nr"  r   r?  r  )r  r  r,   rE  rF  res3res4r.   s           r/   )test_to_datetime_mixed_types_matching_tzsr  e  s    'E	5	B+CsDs4R4y!$B$'Ds7+DDbX&H$)$)$)$)r2   r  z)ignore:Could not infer format:UserWarning	aware_valc                 ,    \        V 4      P                  # r+  r6  r  rU  s   &r/   rV  rV  ~      $q'""r2   	naive_valc                 ,    \        V 4      P                  # r+  r  rU  s   &r/   rV  rV    r  r2   naive_firstc                    WR .pTpV'       d   WR .p\        V \        4      ;'       d    \        V\        4      p\        V\        \        34      p\        V\        4      ;'       d    \        V \        4      pRp\        R V 4       4      p	\        V	\        4      '       g   Tp
V'       dh   \        V \        4      '       dR   \        V\        4      '       d   Rp
\        P                  ! \        V
R7      ;_uu_ 4        \        V4       RRR4       MJV'       g   V'       d   Rp
\        P                  ! \        V
R7      ;_uu_ 4        \        V4       RRR4       \        VRR7       EM.V'       d   VP                  V 4      VP                  V4      8  dw   R	p
\        P                  ! \        V
R7      ;_uu_ 4        \        V4       RRR4       \        P                  ! \        V
R7      ;_uu_ 4        \        VRR7       RRR4       EMV'       d   VP                  V 4      VP                  V4      8  dv   R
p
\        P                  ! \        V
R7      ;_uu_ 4        \        V4       RRR4       \        P                  ! \        V
R7      ;_uu_ 4        \        VRR7       RRR4       MV'       d   VP                  V4      VP                  V 4      8  dv   Rp
\        P                  ! \        V
R7      ;_uu_ 4        \        V4       RRR4       \        P                  ! \        V
R7      ;_uu_ 4        \        VRR7       RRR4       MGTp
\        P                  ! \        V
R7      ;_uu_ 4        \        V4       RRR4       \        VRR7       V'       dw   Tp
\        P                  ! \        V
R7      ;_uu_ 4        \        VRR7       RRR4       \        P                  ! \        V
R7      ;_uu_ 4        \        V4       RRR4       R# Tp
V'       d   \        V \        4      '       d   \        V\        4      '       d   Rp
\        P                  ! \        V
R7      ;_uu_ 4        \        VRR7       RRR4       \        P                  ! \        V
R7      ;_uu_ 4        \        V4       RRR4       R# V'       g   V'       d   Rp
\        P                  ! \        V
R7      ;_uu_ 4        \        VRR7       RRR4       \        P                  ! \        V
R7      ;_uu_ 4        \        V4       RRR4       R#   + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EL5; i  + '       g   i     EL%; i  + '       g   i     EL; i  + '       g   i     ELM; i  + '       g   i     ELn; i  + '       g   i     EL1; i  + '       g   i     R# ; i  + '       g   i     EL; i  + '       g   i     R# ; i  + '       g   i     ELO; i  + '       g   i     R# ; i)r   r  c              3   6   "   T F  qR 8w  g   K  Vx  K  	  R# 5i)r   Nr  )r  rV   s   & r/   r  ?test_to_datetime_mixed_awareness_mixed_types.<locals>.<genexpr>  s     4SG!!Ss   
z<Tz-aware datetime.datetime cannot be converted to datetime64r_   Nz(Cannot mix tz-aware with tz-naive valuesTr  z!time data .* doesn't match formatz3time data \"2020-01-01 00:00\" doesn't match formatz1unconverted data remains when parsing with formatr"  r   )r  rR   rE  rZ   r   nextr   rb   rc   rd   r   rQ  r   )r  r  r  r$  vec	both_strshas_numericboth_datetime	mixed_msgfirst_non_nullr   s   &&&        r/   ,test_to_datetime_mixed_awareness_mixed_typesr  z  s    "%D
CR( 9c*IIz)S/IIYe5Ky(3WW
9h8WM	; 
 4S44N nc**:i;;)Y//Tz55C  65 =@z55C  6 	CT"	9-		)0DD1]]:S11 2]]:S11& 21 
syy+cii	.BBD]]:S11 2]]:S11& 21 
syy+cii	.BBA]]:S11 2]]:S11& 21 ]]:S11 2 	CT"]]:S11G, 2]]:S11# 21 :i;;)Y//Tz55C0 6z55c" 65 =@z55C0 6z55c" 65y 655
 655 211111
 211111
 211111
 211 211111 655555
 655555s   ?U
U U38V#VV/W=W:W+	W?X5X'/X;;Y5Y#U	U0	3V	V	V,	/W 	W	W(	+W<	?X	X$	'X8	;Y	Y 	#Y4	c                      \        \        P                  ! R R4      .4      p \        R.RRR7      p\        P
                  ! W4       R# )l   Mp_$psz1970-01-01 00:00:01.901901901r  Nr  r  rY  s     r/   &test_to_datetime_wrapped_datetime64_psr    s?    "--t<=>F	()1AH &+r2   c                    \         P                  ! R 4      pRpVP                  RV R24      pVP                  R4      ^ ,          p\	        \        V.4      RV R7      pVP                  ^ ,          \        V4      8X  g   Q hR# )z
lxml.etreez2025-02-05 16:59:57z<date>z</date>z/date/node()r   r<   N)rb   r  XMLxpathr   r   ru  r   )r>   etreer{  noder   outs   &     r/   6test_to_datetime_lxml_elementunicoderesult_with_formatr    sp    -EA99vaS()D
**^
$Q
'C
fcUm,?u
MC88A;)A,&&&r2   )r  r{  r*  rO  r   )z
03/24/2016z
03/25/2016r   )rU  rV  r   i)m__doc__r   collectionsr   r   r   r   r   decimalr   r  r  dateutil.parserr   numpyr$   rb   pandas._libsr	   pandas._libs.tslibsr
   r   pandas.compatr   r   pandas.errorsr   r   pandas.util._test_decoratorsutil_test_decoratorsr  pandas.core.dtypes.commonr   pandasr   r   r   r   r   r   r   r   r   r   pandas._testing_testingr(   pandas.core.arraysr   pandas.core.toolsr   rk  pandas.core.tools.datetimesr   r   rI  r  r   r  r  rG  r  rf  rv  r  r  r  r  r  r  r5  rP  r  r  r%   r  rS  rW  rZ  rf  rl  rp  rr  rt  rv  ry  r{  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   rZ   r  r  r  r  r2   r/   <module>r     s          !    * ) < 
 
 
  , 0 8  	F	' 
 F9U0 U0pN) N)b&N@ N@bU1 U1pT* T*n1 1<o1 o1d?I ?IDm/ m/` 34	 5	 F Fc0 c0L%4 %4P** 288T"23  4  GX#67	):6	):6 
	"  - 8-	,- 	,q04Dq4HJ/	/"$,, 4-0Iw#78@ 9 1@DO,,,&
D-*
&*" 	!u GH
Ie"  
 
3BZ%rwwy"''288U288_U"  
 u6[# 7 I[#|,'r2   