@@ -1770,7 +1770,14 @@ class Timestamp(_Timestamp):
1770
1770
1771
1771
Returns
1772
1772
--------
1773
- timedelta : The difference between UTC and the local time as a `timedelta` object.
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.
1774
1781
1775
1782
This method returns the difference between UTC and the local time
1776
1783
as a `timedelta` object. It is useful for understanding the time
@@ -1817,6 +1824,22 @@ class Timestamp(_Timestamp):
1817
1824
Timestamp.timetuple : Return time tuple of local time.
1818
1825
time.struct_time : Time tuple structure used by time functions.
1819
1826
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
+
1820
1843
Examples
1821
1844
--------
1822
1845
>>> ts = pd.Timestamp('2023-01-01 10:00:00', tz='Europe/Brussels')
0 commit comments