Skip to content

Commit 6b90771

Browse files
committed
Remove unit, utcoffset, utctimetuple from code checks
Add backticks Add new line for extended summary in utcoffset
1 parent 130d28c commit 6b90771

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

pandas/_libs/tslibs/timestamps.pyx

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,20 +1764,6 @@ class Timestamp(_Timestamp):
17641764
def utcoffset(self):
17651765
"""
17661766
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.
17811767
17821768
This method returns the difference between UTC and the local time
17831769
as a `timedelta` object. It is useful for understanding the time
@@ -1824,22 +1810,6 @@ class Timestamp(_Timestamp):
18241810
Timestamp.timetuple : Return time tuple of local time.
18251811
time.struct_time : Time tuple structure used by time functions.
18261812
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-
18431813
Examples
18441814
--------
18451815
>>> ts = pd.Timestamp('2023-01-01 10:00:00', tz='Europe/Brussels')

0 commit comments

Comments
 (0)