File tree Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -231,11 +231,8 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
231
231
-i " pandas.Timestamp.to_period PR01,SA01" \
232
232
-i " pandas.Timestamp.today SA01" \
233
233
-i " pandas.Timestamp.toordinal SA01" \
234
- -i " pandas.Timestamp.tz_localize SA01" \
235
234
-i " pandas.Timestamp.tzinfo GL08" \
236
- -i " pandas.Timestamp.tzname SA01" \
237
235
-i " pandas.Timestamp.unit SA01" \
238
- -i " pandas.Timestamp.utcfromtimestamp PR01,SA01" \
239
236
-i " pandas.Timestamp.utcoffset SA01" \
240
237
-i " pandas.Timestamp.utctimetuple SA01" \
241
238
-i " pandas.Timestamp.value GL08" \
Original file line number Diff line number Diff line change @@ -1560,6 +1560,21 @@ class Timestamp(_Timestamp):
1560
1560
1561
1561
Construct a timezone-aware UTC datetime from a POSIX timestamp.
1562
1562
1563
+ This method creates a datetime object from a POSIX timestamp, keeping the Timestamp
1564
+ object's timezone.
1565
+
1566
+ Parameters
1567
+ ----------
1568
+ ts : float
1569
+ POSIX timestamp.
1570
+
1571
+ See Also
1572
+ --------
1573
+ Timezone.tzname : Return time zone name.
1574
+ Timestamp.utcnow : Return a new Timestamp representing UTC day and time.
1575
+ Timestamp.fromtimestamp : Transform timestamp[, tz] to tz's local
1576
+ time from POSIX timestamp.
1577
+
1563
1578
Notes
1564
1579
-----
1565
1580
Timestamp.utcfromtimestamp behavior differs from datetime.utcfromtimestamp
@@ -1735,6 +1750,13 @@ class Timestamp(_Timestamp):
1735
1750
"""
1736
1751
Return time zone name.
1737
1752
1753
+ This method returns the name of the Timestamp's time zone as a string.
1754
+
1755
+ See Also
1756
+ --------
1757
+ Timestamp.tzinfo : Returns the timezone information of the Timestamp.
1758
+ Timestamp.tz_convert : Convert timezone-aware Timestamp to another time zone.
1759
+
1738
1760
Examples
1739
1761
--------
1740
1762
>>> ts = pd.Timestamp('2023-01-01 10:00:00', tz='Europe/Brussels')
@@ -2468,6 +2490,13 @@ default 'raise'
2468
2490
TypeError
2469
2491
If the Timestamp is tz-aware and tz is not None.
2470
2492
2493
+ See Also
2494
+ --------
2495
+ Timestamp.tzinfo : Returns the timezone information of the Timestamp.
2496
+ Timestamp.tz_convert : Convert timezone-aware Timestamp to another time zone.
2497
+ DatetimeIndex.tz_localize : Localize a DatetimeIndex to a specific time zone.
2498
+ datetime.datetime.astimezone : Convert a datetime object to another time zone.
2499
+
2471
2500
Examples
2472
2501
--------
2473
2502
Create a naive timestamp object:
You can’t perform that action at this time.
0 commit comments