@@ -1764,20 +1764,6 @@ class Timestamp(_Timestamp):
1764
1764
def utcoffset (self ):
1765
1765
"""
1766
1766
Return utc offset.
1767
- This method returns the difference between UTC and the local time
1768
- as a `timedelta` object. It is useful for understanding the time
1769
- difference between the current timezone and UTC.
1770
-
1771
- Returns
1772
- --------
1773
- timedelta
1774
- The difference between UTC and the local time as a `timedelta` object.
1775
-
1776
- See Also
1777
- --------
1778
- datetime.datetime.utcoffset : Standard library method to get the UTC offset of a datetime object.
1779
- Timestamp.tzname : Return the name of the timezone.
1780
- Timestamp.dst : Return the daylight saving time (DST) adjustment.
1781
1767
1782
1768
This method returns the difference between UTC and the local time
1783
1769
as a `timedelta` object. It is useful for understanding the time
@@ -1824,22 +1810,6 @@ class Timestamp(_Timestamp):
1824
1810
Timestamp.timetuple : Return time tuple of local time.
1825
1811
time.struct_time : Time tuple structure used by time functions.
1826
1812
1827
- This method converts the Timestamp to UTC and returns a time tuple
1828
- containing 9 components: year, month, day, hour, minute, second,
1829
- weekday, day of year, and DST flag. This is particularly useful for
1830
- converting a Timestamp to a format compatible with time module functions.
1831
-
1832
- Returns
1833
- -------
1834
- time.struct_time
1835
- A time.struct_time object representing the UTC time.
1836
-
1837
- See Also
1838
- --------
1839
- datetime.datetime.utctimetuple : Return UTC time tuple, compatible with time.localtime().
1840
- Timestamp.timetuple : Return time tuple of local time.
1841
- time.struct_time : Time tuple structure used by time functions.
1842
-
1843
1813
Examples
1844
1814
--------
1845
1815
>>> ts = pd.Timestamp('2023-01-01 10:00:00', tz='Europe/Brussels')
0 commit comments