@@ -626,6 +626,13 @@ class NaTType(_NaT):
626
626
"""
627
627
Return time zone name.
628
628
629
+ This method returns the name of the Timestamp's time zone as a string.
630
+
631
+ See Also
632
+ --------
633
+ Timestamp.tzinfo : Returns the timezone information of the Timestamp.
634
+ Timestamp.tz_convert : Convert timezone-aware Timestamp to another time zone.
635
+
629
636
Examples
630
637
--------
631
638
>>> ts = pd.Timestamp('2023-01-01 10:00:00', tz='Europe/Brussels')
@@ -765,6 +772,21 @@ class NaTType(_NaT):
765
772
766
773
Construct a timezone-aware UTC datetime from a POSIX timestamp.
767
774
775
+ This method creates a datetime object from a POSIX timestamp, keeping the
776
+ Timestamp object's timezone.
777
+
778
+ Parameters
779
+ ----------
780
+ ts : float
781
+ POSIX timestamp.
782
+
783
+ See Also
784
+ --------
785
+ Timezone.tzname : Return time zone name.
786
+ Timestamp.utcnow : Return a new Timestamp representing UTC day and time.
787
+ Timestamp.fromtimestamp : Transform timestamp[, tz] to tz's local
788
+ time from POSIX timestamp.
789
+
768
790
Notes
769
791
-----
770
792
Timestamp.utcfromtimestamp behavior differs from datetime.utcfromtimestamp
@@ -1432,6 +1454,13 @@ default 'raise'
1432
1454
TypeError
1433
1455
If the Timestamp is tz-aware and tz is not None.
1434
1456
1457
+ See Also
1458
+ --------
1459
+ Timestamp.tzinfo : Returns the timezone information of the Timestamp.
1460
+ Timestamp.tz_convert : Convert timezone-aware Timestamp to another time zone.
1461
+ DatetimeIndex.tz_localize : Localize a DatetimeIndex to a specific time zone.
1462
+ datetime.datetime.astimezone : Convert a datetime object to another time zone.
1463
+
1435
1464
Examples
1436
1465
--------
1437
1466
Create a naive timestamp object:
0 commit comments