@@ -570,7 +570,7 @@ def dtype(self) -> np.dtype | DatetimeTZDtype: # type: ignore[override]
570
570
@property
571
571
def tz (self ) -> tzinfo | None :
572
572
"""
573
- Return timezone, if any .
573
+ Return the timezone .
574
574
575
575
Returns
576
576
-------
@@ -1278,7 +1278,9 @@ def day_name(self, locale=None):
1278
1278
@property
1279
1279
def time (self ) -> npt .NDArray [np .object_ ]:
1280
1280
"""
1281
- Returns numpy array of datetime.time. The time part of the Timestamps.
1281
+ Returns numpy array of :class:`datetime.time` objects.
1282
+
1283
+ The time part of the Timestamps.
1282
1284
"""
1283
1285
# If the Timestamps have a timezone that is not UTC,
1284
1286
# convert them into their i8 representation while
@@ -1290,16 +1292,20 @@ def time(self) -> npt.NDArray[np.object_]:
1290
1292
@property
1291
1293
def timetz (self ) -> npt .NDArray [np .object_ ]:
1292
1294
"""
1293
- Returns numpy array of datetime.time also containing timezone
1294
- information. The time part of the Timestamps.
1295
+ Returns numpy array of :class:`datetime.time` objects with timezone
1296
+ information.
1297
+
1298
+ The time part of the Timestamps.
1295
1299
"""
1296
1300
return ints_to_pydatetime (self .asi8 , self .tz , box = "time" )
1297
1301
1298
1302
@property
1299
1303
def date (self ) -> npt .NDArray [np .object_ ]:
1300
1304
"""
1301
- Returns numpy array of python datetime.date objects (namely, the date
1302
- part of Timestamps without timezone information).
1305
+ Returns numpy array of python :class:`datetime.date` objects.
1306
+
1307
+ Namely, the date part of Timestamps without time and
1308
+ timezone information.
1303
1309
"""
1304
1310
# If the Timestamps have a timezone that is not UTC,
1305
1311
# convert them into their i8 representation while
0 commit comments