@@ -822,6 +822,11 @@ class NaTType(_NaT):
822
822
"""
823
823
Convert timezone-aware Timestamp to another time zone.
824
824
825
+ This method is used to convert a timezone-aware Timestamp object to a
826
+ different time zone. The original UTC time remains the same; only the
827
+ time zone information is changed. If the Timestamp is timezone-naive, a
828
+ TypeError is raised.
829
+
825
830
Parameters
826
831
----------
827
832
tz : str, pytz.timezone, dateutil.tz.tzfile or None
@@ -837,6 +842,13 @@ class NaTType(_NaT):
837
842
TypeError
838
843
If Timestamp is tz-naive.
839
844
845
+ See Also
846
+ --------
847
+ Timestamp.tz_localize : Localize the Timestamp to a timezone.
848
+ DatetimeIndex.tz_convert : Convert a DatetimeIndex to another time zone.
849
+ DatetimeIndex.tz_localize : Localize a DatetimeIndex to a specific time zone.
850
+ datetime.datetime.astimezone : Convert a datetime object to another time zone.
851
+
840
852
Examples
841
853
--------
842
854
Create a timestamp object with UTC timezone:
@@ -1264,6 +1276,11 @@ timedelta}, default 'raise'
1264
1276
"""
1265
1277
Convert timezone-aware Timestamp to another time zone.
1266
1278
1279
+ This method is used to convert a timezone-aware Timestamp object to a
1280
+ different time zone. The original UTC time remains the same; only the
1281
+ time zone information is changed. If the Timestamp is timezone-naive, a
1282
+ TypeError is raised.
1283
+
1267
1284
Parameters
1268
1285
----------
1269
1286
tz : str, pytz.timezone, dateutil.tz.tzfile or None
@@ -1279,6 +1296,13 @@ timedelta}, default 'raise'
1279
1296
TypeError
1280
1297
If Timestamp is tz-naive.
1281
1298
1299
+ See Also
1300
+ --------
1301
+ Timestamp.tz_localize : Localize the Timestamp to a timezone.
1302
+ DatetimeIndex.tz_convert : Convert a DatetimeIndex to another time zone.
1303
+ DatetimeIndex.tz_localize : Localize a DatetimeIndex to a specific time zone.
1304
+ datetime.datetime.astimezone : Convert a datetime object to another time zone.
1305
+
1282
1306
Examples
1283
1307
--------
1284
1308
Create a timestamp object with UTC timezone:
0 commit comments